| 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_) { |
no test coverage detected