Improved robustness of slicing when the slicing plane

crosses a horizontal plane of an object exactly.
Should improve Github issues #831, #895, #1102
This commit is contained in:
bubnikv
2018-08-08 16:24:10 +02:00
parent 93b8f3147c
commit 00e9f07a03
5 changed files with 188 additions and 86 deletions

View File

@@ -86,8 +86,8 @@ void FillHoneycomb::_fill_surface_single(
Polylines paths;
{
Polylines p;
for (Polygons::iterator it = polygons.begin(); it != polygons.end(); ++ it)
p.push_back((Polyline)(*it));
for (Polygon &poly : polygons)
p.emplace_back(poly.points);
paths = intersection_pl(p, to_polygons(expolygon));
}