mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Ported Print::validate() to XS
This commit is contained in:
parent
3e4c572164
commit
bad0bd8520
10 changed files with 148 additions and 75 deletions
|
@ -52,6 +52,16 @@ convex_hull(Points points, Polygon* hull)
|
|||
hull->points.pop_back();
|
||||
}
|
||||
|
||||
void
|
||||
convex_hull(const Polygons &polygons, Polygon* hull)
|
||||
{
|
||||
Points pp;
|
||||
for (Polygons::const_iterator p = polygons.begin(); p != polygons.end(); ++p) {
|
||||
pp.insert(pp.end(), p->points.begin(), p->points.end());
|
||||
}
|
||||
convex_hull(pp, hull);
|
||||
}
|
||||
|
||||
/* accepts an arrayref of points and returns a list of indices
|
||||
according to a nearest-neighbor walk */
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue