Solve mini pillar widening by enforcing min radius on bed points
Use subtree rescue after all
This commit is contained in:
parent
ebb8f9bc80
commit
58acc893b3
1 changed files with 4 additions and 1 deletions
|
@ -150,7 +150,7 @@ public:
|
|||
<< " " << j.pos.y() << " " << j.pos.z();
|
||||
|
||||
// Discard all the support points connecting to this branch.
|
||||
discard_subtree(j.id);
|
||||
discard_subtree_rescure(j.id);
|
||||
}
|
||||
|
||||
const std::vector<size_t>& unroutable_pinheads() const
|
||||
|
@ -336,6 +336,9 @@ void create_branching_tree(SupportTreeBuilder &builder, const SupportableMesh &s
|
|||
float(props.ground_level()),
|
||||
props.sampling_radius());
|
||||
|
||||
for (auto &bp : bedpts)
|
||||
bp.Rmin = sm.cfg.head_back_radius_mm;
|
||||
|
||||
branchingtree::PointCloud nodes{std::move(meshpts), std::move(bedpts),
|
||||
std::move(leafs), props};
|
||||
|
||||
|
|
Loading…
Reference in a new issue