Quick fix for visible bridges under the pillar base.

This commit is contained in:
tamasmeszaros 2019-01-15 14:41:45 +01:00
parent ffbec83337
commit bb8866ca37

View file

@ -1248,8 +1248,8 @@ bool SLASupportTree::generate(const PointSet &points,
// there is no need to bridge them together. // there is no need to bridge them together.
if(pillar_dist > 2*cfg.head_back_radius_mm && if(pillar_dist > 2*cfg.head_back_radius_mm &&
bridge_distance < cfg.max_bridge_length_mm) bridge_distance < cfg.max_bridge_length_mm)
while(sj(Z) > pillar.endpoint(Z) && while(sj(Z) > pillar.endpoint(Z) + cfg.base_radius_mm &&
ej(Z) > nextpillar.endpoint(Z)) ej(Z) > nextpillar.endpoint(Z) + + cfg.base_radius_mm)
{ {
if(chkd >= bridge_distance) { if(chkd >= bridge_distance) {
result.add_bridge(sj, ej, pillar.r); result.add_bridge(sj, ej, pillar.r);