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

Function decimateContour

source/MRMesh/MRPolylineDecimate.cpp:370–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370DecimatePolylineResult decimateContour( Contour2f& contour, const DecimatePolylineSettings2& settings )
371{
372 MR_TIMER;
373 MR::Polyline2 p( { contour } );
374 auto res = decimatePolyline( p, settings );
375 auto resContours = p.contours();
376 assert ( p.contours().size() == 1 );
377 if ( !p.contours().empty() )
378 contour = p.contours()[0];
379 else
380 contour.clear();
381 return res;
382}
383
384DecimatePolylineResult decimateContour( Contour3f& contour, const DecimatePolylineSettings3& settings )
385{

Callers

nothing calls this directly

Calls 5

decimatePolylineFunction · 0.85
contoursMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected