* slicing supports
* adding the pad geometry
* rasterizing the support and pad slices
This commit is contained in:
tamasmeszaros 2018-11-14 18:04:43 +01:00
parent 3613a54e03
commit e98c83a025
6 changed files with 268 additions and 144 deletions

View file

@ -425,6 +425,8 @@ void base_plate(const TriangleMesh &mesh, ExPolygons &output, float h)
TriangleMesh upper, lower;
slicer.cut(h, &upper, &lower);
// TODO: this might be slow
output = lower.horizontal_projection();
for(auto& o : output) o = o.simplify(0.1/SCALING_FACTOR).front();