Removed head_back_radius and added pillar widening factor to the parameter layers
This commit is contained in:
parent
cabfca1031
commit
a05bda5347
8 changed files with 43 additions and 40 deletions
src/libslic3r/SLA
|
@ -309,7 +309,7 @@ struct Head {
|
|||
}
|
||||
|
||||
double request_pillar_radius(double radius) const {
|
||||
const double rmax = r_back_mm /* * 0.65*/ ;
|
||||
const double rmax = r_back_mm;
|
||||
return radius > 0 && radius < rmax ? radius : rmax;
|
||||
}
|
||||
};
|
||||
|
@ -1186,7 +1186,7 @@ bool SLASupportTree::generate(const PointSet &points,
|
|||
|
||||
// If the pillars are so close that they touch each other,
|
||||
// there is no need to bridge them together.
|
||||
if(pillar_dist > 2*cfg.pillar_radius_mm &&
|
||||
if(pillar_dist > 2*cfg.head_back_radius_mm &&
|
||||
bridge_distance < cfg.max_bridge_length_mm)
|
||||
while(sj(Z) > pillar.endpoint(Z) &&
|
||||
ej(Z) > nextpillar.endpoint(Z))
|
||||
|
@ -1225,7 +1225,7 @@ bool SLASupportTree::generate(const PointSet &points,
|
|||
Result& result)
|
||||
{
|
||||
const double hbr = cfg.head_back_radius_mm;
|
||||
const double pradius = cfg.pillar_radius_mm;
|
||||
const double pradius = cfg.head_back_radius_mm;
|
||||
const double maxbridgelen = cfg.max_bridge_length_mm;
|
||||
const double gndlvl = result.ground_level;
|
||||
|
||||
|
@ -1478,7 +1478,7 @@ bool SLASupportTree::generate(const PointSet &points,
|
|||
|
||||
result.add_pillar(idx,
|
||||
Vec3d{headend(X), headend(Y), headend(Z) - gh + hl},
|
||||
cfg.pillar_radius_mm
|
||||
cfg.head_back_radius_mm
|
||||
).base = base_head.mesh;
|
||||
}
|
||||
};
|
||||
|
@ -1493,7 +1493,7 @@ bool SLASupportTree::generate(const PointSet &points,
|
|||
// For now we will just generate smaller headless sticks with a sharp
|
||||
// ending point that connects to the mesh surface.
|
||||
|
||||
const double R = 0.5*cfg.pillar_radius_mm;
|
||||
const double R = cfg.headless_pillar_radius_mm;
|
||||
const double HWIDTH_MM = R/3;
|
||||
|
||||
// We will sink the pins into the model surface for a distance of 1/3 of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue