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

Method isOrgInnerAndHasDegree

source/MRMesh/MRMeshTopology.cpp:355–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool MeshTopology::isOrgInnerAndHasDegree( EdgeId a, int d ) const
356{
357 int counter = 0;
358 for ( auto e : orgRing( *this, a ) )
359 {
360 if ( !left( e ) )
361 return false;
362 ++counter;
363 if ( counter > d )
364 return false;
365 }
366 if ( counter < d )
367 return false;
368 assert( counter == d );
369 return true;
370}
371
372int MeshTopology::getLeftDegree( EdgeId a ) const
373{

Callers 1

runMethod · 0.80

Calls 1

orgRingFunction · 0.85

Tested by

no test coverage detected