Change build_tree return value to void as its not used anywhere
This commit is contained in:
parent
36ec731adf
commit
725f5c05e3
@ -9,7 +9,7 @@
|
||||
|
||||
namespace Slic3r { namespace branchingtree {
|
||||
|
||||
bool build_tree(PointCloud &nodes, Builder &builder)
|
||||
void build_tree(PointCloud &nodes, Builder &builder)
|
||||
{
|
||||
constexpr size_t ReachablesToExamine = 5;
|
||||
|
||||
@ -149,18 +149,16 @@ bool build_tree(PointCloud &nodes, Builder &builder)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool build_tree(const indexed_triangle_set & its,
|
||||
const std::vector<Node> &support_roots,
|
||||
Builder & builder,
|
||||
const Properties & properties)
|
||||
void build_tree(const indexed_triangle_set &its,
|
||||
const std::vector<Node> &support_roots,
|
||||
Builder &builder,
|
||||
const Properties &properties)
|
||||
{
|
||||
PointCloud nodes(its, support_roots, properties);
|
||||
|
||||
return build_tree(nodes, builder);
|
||||
build_tree(nodes, builder);
|
||||
}
|
||||
|
||||
ExPolygon make_bed_poly(const indexed_triangle_set &its)
|
||||
|
@ -119,23 +119,19 @@ public:
|
||||
// cannot be inserted. If a particular path is unavailable, the algorithm
|
||||
// will try a few other paths as well. If all of them fail, one of the
|
||||
// report_unroutable_* methods will be called as a last resort.
|
||||
bool build_tree(const indexed_triangle_set & its,
|
||||
const std::vector<Node> &support_leafs,
|
||||
Builder & builder,
|
||||
const Properties & properties = {});
|
||||
void build_tree(const indexed_triangle_set &its,
|
||||
const std::vector<Node> &support_leafs,
|
||||
Builder &builder,
|
||||
const Properties &properties = {});
|
||||
|
||||
inline bool build_tree(const indexed_triangle_set & its,
|
||||
const std::vector<Node> &support_leafs,
|
||||
Builder && builder,
|
||||
const Properties & properties = {})
|
||||
inline void build_tree(const indexed_triangle_set &its,
|
||||
const std::vector<Node> &support_leafs,
|
||||
Builder &&builder,
|
||||
const Properties &properties = {})
|
||||
{
|
||||
return build_tree(its, support_leafs, builder, properties);
|
||||
build_tree(its, support_leafs, builder, properties);
|
||||
}
|
||||
|
||||
//class PointCloud;
|
||||
|
||||
//bool build_tree(PointCloud &pcloud, Builder &builder);
|
||||
|
||||
// Helper function to derive a bed polygon only from the model bounding box.
|
||||
ExPolygon make_bed_poly(const indexed_triangle_set &its);
|
||||
|
||||
|
@ -238,7 +238,7 @@ template<class PC, class Fn> void traverse(PC &&pc, size_t root, Fn &&fn)
|
||||
}
|
||||
}
|
||||
|
||||
bool build_tree(PointCloud &pcloud, Builder &builder);
|
||||
void build_tree(PointCloud &pcloud, Builder &builder);
|
||||
|
||||
}} // namespace Slic3r::branchingtree
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user