MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / smooth_polygon

Function smooth_polygon

src/svgfill/src/arrange_polygons.cpp:268–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void smooth_polygon(double factor, Polygon_2& poly) {
269 auto ps = create_and_convert_offset_polygon(-factor, poly);
270 if (ps.size() == 1) {
271 auto r2 = ps.front();
272 ps = create_and_convert_offset_polygon(+factor, r2);
273 if (ps.size() == 1) {
274 poly = ps.front();
275 }
276 }
277}
278
279template <typename K, typename OutIt>
280void split_self_intersecting_polygon(const CGAL::Polygon_2<K>& poly, OutIt output_it) {

Callers 2

eliminate_overlapsFunction · 0.85
arrange_cgal_polygonsFunction · 0.85

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected