mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
small fix for headless supports when they have no space to manifest
This commit is contained in:
parent
fefa4ded00
commit
6680aaaf16
1 changed files with 2 additions and 2 deletions
|
@ -1553,7 +1553,7 @@ bool SLASupportTree::generate(const PointSet &points,
|
||||||
const double HWIDTH_MM = R/3;
|
const double HWIDTH_MM = R/3;
|
||||||
|
|
||||||
// We will sink the pins into the model surface for a distance of 1/3 of
|
// We will sink the pins into the model surface for a distance of 1/3 of
|
||||||
// HWIDTH_MM
|
// the pin radius
|
||||||
for(int i = 0; i < headless_pts.rows(); i++) { tifcl();
|
for(int i = 0; i < headless_pts.rows(); i++) { tifcl();
|
||||||
Vec3d sp = headless_pts.row(i);
|
Vec3d sp = headless_pts.row(i);
|
||||||
|
|
||||||
|
@ -1564,7 +1564,7 @@ bool SLASupportTree::generate(const PointSet &points,
|
||||||
Vec3d sj = sp + R * n;
|
Vec3d sj = sp + R * n;
|
||||||
double dist = ray_mesh_intersect(sj, dir, emesh);
|
double dist = ray_mesh_intersect(sj, dir, emesh);
|
||||||
|
|
||||||
if(std::isinf(dist) || std::isnan(dist)) continue;
|
if(std::isinf(dist) || std::isnan(dist) || dist < 2*R) continue;
|
||||||
|
|
||||||
Vec3d ej = sj + (dist + HWIDTH_MM)* dir;
|
Vec3d ej = sj + (dist + HWIDTH_MM)* dir;
|
||||||
result.add_compact_bridge(sp, ej, n, R);
|
result.add_compact_bridge(sp, ej, n, R);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue