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

Function removeLoneContours

source/MRMesh/MRIntersectionContour.cpp:353–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void removeLoneContours( ContinuousContours& contours, bool ignoreOpen )
354{
355 MR_TIMER;
356 auto loneContours = detectLoneContours( contours, ignoreOpen );
357 for ( int i = int( loneContours.size() ) - 1; i >= 0; --i )
358 {
359 contours.erase( contours.begin() + loneContours[i] );
360 }
361}
362
363} //namespace MR

Callers 2

selfBooleanFunction · 0.85
booleanImplFunction · 0.85

Calls 4

detectLoneContoursFunction · 0.85
eraseMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected