WIP: Optimization of the object's 2D convex silhouette for arrangement,

not working yet.
This commit is contained in:
bubnikv 2019-01-28 10:10:23 +01:00
parent 282ef552f9
commit adb96bdc2e
4 changed files with 100 additions and 18 deletions
src/libslic3r

View file

@ -207,8 +207,7 @@ static bool sort_pointfs(const Vec3d& a, const Vec3d& b)
}
// This implementation is based on Andrew's monotone chain 2D convex hull algorithm
Polygon
convex_hull(Points points)
Polygon convex_hull(Points points)
{
assert(points.size() >= 3);
// sort input points