mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Adapt plater to new convex hull
This commit is contained in:
parent
9cf138574c
commit
3fca0956bc
4 changed files with 57 additions and 42 deletions
|
@ -17,7 +17,7 @@ sort_points (Point a, Point b)
|
|||
void
|
||||
convex_hull(Points points, Polygon &hull)
|
||||
{
|
||||
assert(points.size() >= 2);
|
||||
assert(points.size() >= 3);
|
||||
// sort input points
|
||||
std::sort(points.begin(), points.end(), sort_points);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue