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

Function triCenter

source/MRMesh/MRMeshMath.cpp:119–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119Vector3f triCenter( const MeshTopology & topology, const VertCoords & points, FaceId f )
120{
121 Vector3f v0, v1, v2;
122 getTriPoints( topology, points, f, v0, v1, v2 );
123 return ( 1 / 3.0f ) * ( v0 + v1 + v2 );
124}
125
126UndirectedEdgeScalars edgeLengths( const MeshTopology & topology, const VertCoords & points )
127{

Callers 3

triCenterMethod · 0.85
splitFaceMethod · 0.85
findCenterFromFacesFunction · 0.85

Calls 1

getTriPointsFunction · 0.85

Tested by

no test coverage detected