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

Method onEdge

source/MRMesh/MRMeshTriPoint.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21MeshEdgePoint MeshTriPoint::onEdge( const MeshTopology & topology ) const
22{
23 switch( bary.onEdge() )
24 {
25 case 0: // if ( a + b + eps >= 1 )
26 return MeshEdgePoint{ topology.prev( e.sym() ), bary.b };
27 case 1: // a <= eps
28 return MeshEdgePoint{ topology.next( e ).sym(), 1 - bary.b };
29 case 2: // b <= eps
30 return MeshEdgePoint{ e, bary.a };
31 }
32 return {};
33}
34
35bool MeshTriPoint::isBd( const MeshTopology & topology, const FaceBitSet * region ) const
36{

Callers 2

sameFunction · 0.45
fromSameTriangleFunction · 0.45

Calls 3

prevMethod · 0.45
symMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected