| 368 | } |
| 369 | |
| 370 | DecimatePolylineResult 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 | |
| 384 | DecimatePolylineResult decimateContour( Contour3f& contour, const DecimatePolylineSettings3& settings ) |
| 385 | { |
nothing calls this directly
no test coverage detected