Solve mini pillar widening by enforcing min radius on bed points

Use subtree rescue after all
This commit is contained in:
tamasmeszaros 2022-12-06 13:49:26 +01:00
parent ebb8f9bc80
commit 58acc893b3

View file

@ -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};