Some reduction of unnecessary conversions when calling ClipperUtils.

This commit is contained in:
Vojtech Bubnik
2021-09-13 15:13:05 +02:00
parent 0e0f11be2f
commit 380a19f63e
11 changed files with 29 additions and 24 deletions

View File

@@ -92,7 +92,7 @@ void Bed_2D::repaint(const std::vector<Vec2d>& shape)
for (auto y = bb.min(1) - fmod(bb.min(1), step) + step; y < bb.max(1); y += step) {
polylines.push_back(Polyline::new_scale({ Vec2d(bb.min(0), y), Vec2d(bb.max(0), y) }));
}
polylines = intersection_pl(polylines, (Polygons)bed_polygon);
polylines = intersection_pl(polylines, bed_polygon);
dc.SetPen(wxPen(wxColour(230, 230, 230), 1, wxPENSTYLE_SOLID));
for (auto pl : polylines)