mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -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
|
@ -606,7 +606,7 @@ TriangleMesh::convex_hull(Polygon &hull)
|
|||
Points pp;
|
||||
pp.reserve(this->stl.stats.shared_vertices);
|
||||
for (int i = 0; i < this->stl.stats.shared_vertices; i++) {
|
||||
stl_vertex* v = this->stl.v_shared;
|
||||
stl_vertex* v = &this->stl.v_shared[i];
|
||||
pp.push_back(Point(v->x / SCALING_FACTOR, v->y / SCALING_FACTOR));
|
||||
}
|
||||
Slic3r::Geometry::convex_hull(pp, hull);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue