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

Method write_polygons

src/svgfill/src/arrange_polygons.cpp:444–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 }
443
444 void write_polygons(const std::vector<Polygon_2>& polygons, const std::string& name) {
445 if (enabled_) {
446 size_t i = 0;
447 for (auto& polygon : polygons) {
448 write_polygon_to_obj_(obj, vi, true, polygon, name + "_" + std::to_string(i++));
449 write_polygon_to_svg_(svg, polygon, name);
450 }
451 obj << std::flush;
452 }
453 }
454
455 void write_polygons(const std::vector<Polygon_with_holes_2>& polygons, const std::string& name) {
456 if (enabled_) {

Callers 2

join_segment_runsFunction · 0.80
arrange_cgal_polygonsFunction · 0.80

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected