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

Method reachNext

source/MRMesh/MRFaceDistance.cpp:117–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117auto DualEdgePathsBuider::reachNext() -> CandidateFace
118{
119 while ( !nextSteps_.empty() )
120 {
121 const auto c = nextSteps_.top();
122 nextSteps_.pop();
123 if ( distances_[c.f] < c.penalty )
124 {
125 // shorter path to the face was found
126 continue;
127 }
128 assert( distances_[c.f] == c.penalty );
129 return c;
130 }
131 return {};
132}
133
134
135auto DualEdgePathsBuider::growOneEdge() -> CandidateFace

Callers 2

dilateRegionByMetricFunction · 0.45

Calls 2

emptyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected