Fixing broken SLA slicing: SPE-984

This commit is contained in:
tamasmeszaros 2019-07-09 13:12:55 +02:00
parent 386a42b4c5
commit 18fcb64681
3 changed files with 41 additions and 29 deletions

View file

@ -510,9 +510,9 @@ ExPolygons concave_hull(const ExPolygons& polys, double max_dist_mm = 50,
void base_plate(const TriangleMesh &mesh, ExPolygons &output, float h,
float layerh, ThrowOnCancel thrfn)
{
TriangleMesh m = mesh;
m.require_shared_vertices(); // TriangleMeshSlicer needs this
TriangleMeshSlicer slicer(&m);
if (mesh.empty()) return;
TriangleMeshSlicer slicer(&mesh);
auto bb = mesh.bounding_box();
float gnd = float(bb.min(Z));