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

Method flowsFinallyTo

source/MRMesh/MRWatershedGraph.cpp:173–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173Graph::VertId WatershedGraph::flowsFinallyTo( Graph::VertId v, bool exceptOutside ) const
174{
175 for (;;)
176 {
177 auto v2 = flowsTo( v );
178 if ( v2 == v )
179 return v;
180 if ( exceptOutside && v2 == outsideId_ )
181 return v;
182 v = v2;
183 }
184}
185
186void WatershedGraph::setParentsToRoots()
187{

Callers 1

simulateOneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected