MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / edgePoint

Function edgePoint

source/MRMesh/MRMeshMath.h:33–36  ·  view source on GitHub ↗

returns a point on the edge: origin point for f=0 and destination point for f=1

Source from the content-addressed store, hash-verified

31
32/// returns a point on the edge: origin point for f=0 and destination point for f=1
33[[nodiscard]] inline Vector3f edgePoint( const MeshTopology & topology, const VertCoords & points, EdgeId e, float f )
34{
35 return f * destPnt( topology, points, e ) + ( 1 - f ) * orgPnt( topology, points, e );
36}
37
38/// computes coordinates of point given as edge and relative position on it
39[[nodiscard]] inline Vector3f edgePoint( const MeshTopology & topology, const VertCoords & points, const MeshEdgePoint & ep )

Callers 4

edgePointMethod · 0.85
edgePointMethod · 0.85
edgeCenterMethod · 0.85
edgeCenterFunction · 0.85

Calls 2

destPntFunction · 0.85
orgPntFunction · 0.85

Tested by

no test coverage detected