Fix for SPE-797

This commit is contained in:
tamasmeszaros 2019-01-28 16:30:15 +01:00
parent 9d9d5f22ef
commit 814f663c79

View File

@ -1391,7 +1391,8 @@ bool SLASupportTree::generate(const PointSet &points,
} }
double d = distance(jp, jn); double d = distance(jp, jn);
if(jn(Z) <= gndlvl || d > max_len) break; if(jn(Z) <= (gndlvl + 2*cfg.head_width_mm) || d > max_len)
break;
double chkd = ray_mesh_intersect(jp, dirv(jp, jn), emesh); double chkd = ray_mesh_intersect(jp, dirv(jp, jn), emesh);
if(chkd >= d) nearest_id = ne.second; if(chkd >= d) nearest_id = ne.second;