Apply branch length setting from UI for branching tree

This commit is contained in:
tamasmeszaros 2022-05-18 09:56:16 +02:00
parent 4c3ba3f6bf
commit 5d6d1f5234

View File

@ -227,7 +227,8 @@ void create_branching_tree(SupportTreeBuilder &builder, const SupportableMesh &s
auto props = branchingtree::Properties{}
.bed_shape(bedpolys)
.ground_level(sla::ground_level(sm))
.max_slope(sm.cfg.bridge_slope);
.max_slope(sm.cfg.bridge_slope)
.max_branch_length(sm.cfg.max_bridge_length_mm);
branchingtree::PointCloud nodes{its, std::move(leafs), props};
BranchingTreeBuilder vbuilder{builder, sm, nodes};