fix for missing top ring in the raster. SPE-669

This commit is contained in:
tamasmeszaros 2018-12-10 14:38:49 +01:00
parent 5e4c6c8e2d
commit 92ace1c97a

View file

@ -743,8 +743,11 @@ public:
// WITH THE PAD
double full_height() const {
if(merged_mesh().empty() && !pad().empty())
return pad().cfg.min_wall_height_mm;
double h = mesh_height();
if(!pad().empty()) h += pad().cfg.min_wall_height_mm / 2;
if(!pad().empty()) h += sla::get_pad_elevation(pad().cfg);
return h;
}