Working on proper merging and leveling of the support layers.

This commit is contained in:
tamasmeszaros 2018-11-20 11:59:40 +01:00
parent f3b7b36d20
commit 7482b619b5
3 changed files with 49 additions and 33 deletions

View file

@ -424,12 +424,6 @@ void base_plate(const TriangleMesh &mesh, ExPolygons &output, float h,
TriangleMesh m = mesh;
TriangleMeshSlicer slicer(&m);
// TriangleMesh upper, lower;
// slicer.cut(h, &upper, &lower);
// TODO: this might be slow (in fact it was)
// output = lower.horizontal_projection();
auto bb = mesh.bounding_box();
float gnd = float(bb.min(Z));
std::vector<float> heights = {float(bb.min(Z))};