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

Function edgeCenter

source/MRMesh/MRMeshMath.h:45–48  ·  view source on GitHub ↗

computes the center of given edge

Source from the content-addressed store, hash-verified

43
44/// computes the center of given edge
45[[nodiscard]] inline Vector3f edgeCenter( const MeshTopology & topology, const VertCoords & points, UndirectedEdgeId e )
46{
47 return edgePoint( topology, points, e, 0.5f );
48}
49
50/// returns three points of left face of e: v0 = orgPnt( e ), v1 = destPnt( e )
51MRMESH_API void getLeftTriPoints( const MeshTopology & topology, const VertCoords & points, EdgeId e, Vector3f & v0, Vector3f & v1, Vector3f & v2 );

Callers 3

edgeCenterMethod · 0.85
splitEdgeMethod · 0.85
splitEdgeMethod · 0.85

Calls 1

edgePointFunction · 0.85

Tested by

no test coverage detected