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

Function edgePoint2MeshTriPoint

source/MRMesh/MRMeshTriPoint.cpp:160–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160static bool edgePoint2MeshTriPoint( const MeshTopology & topology, const MeshEdgePoint & ae, FaceId f, MeshTriPoint & a )
161{
162 if ( topology.left( ae.e ) == f )
163 {
164 a = MeshTriPoint( ae );
165 return true;
166 }
167 if ( topology.right( ae.e ) == f )
168 {
169 a = MeshTriPoint( ae.sym() );
170 return true;
171 }
172 return false;
173}
174
175bool fromSameTriangle( const MeshTopology & topology, MeshTriPoint & a, MeshTriPoint & b )
176{

Callers 1

fromSameTriangleFunction · 0.85

Calls 4

leftMethod · 0.80
rightMethod · 0.80
MeshTriPointClass · 0.70
symMethod · 0.45

Tested by

no test coverage detected