Remove the discard region for bottom points removal.

This was a workaround for small supports not to end up in the middle of the gap between the pad and the object. The issue needs to be solved at the support generation.
This commit is contained in:
tamasmeszaros
2020-06-03 17:42:29 +02:00
parent 439de8536a
commit fe78684e30

View File

@@ -374,12 +374,11 @@ void SLAPrint::Steps::support_tree(SLAPrintObject &po)
// If the zero elevation mode is engaged, we have to filter out all the
// points that are on the bottom of the object
if (is_zero_elevation(po.config())) {
double discard = po.config().pad_enable.getBool() ?
po.m_config.pad_wall_height.getFloat() :
po.m_config.support_base_height.getFloat() ;
// double discard = pcfg.embed_object.object_gap_mm /
// std::cos(po.m_supportdata->cfg.bridge_slope) ;
remove_bottom_points(po.m_supportdata->pts,
float(po.m_supportdata->emesh.ground_level() + discard));
float(po.m_supportdata->emesh.ground_level() + EPSILON));
}
po.m_supportdata->cfg = make_support_cfg(po.m_config);