mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 05:51:47 +08:00
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 {
|
namespace Slic3r { namespace branchingtree {
|
||||||
|
|
||||||
bool build_tree(PointCloud &nodes, Builder &builder)
|
void build_tree(PointCloud &nodes, Builder &builder)
|
||||||
{
|
{
|
||||||
constexpr size_t ReachablesToExamine = 5;
|
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,
|
void build_tree(const indexed_triangle_set &its,
|
||||||
const std::vector<Node> &support_roots,
|
const std::vector<Node> &support_roots,
|
||||||
Builder & builder,
|
Builder &builder,
|
||||||
const Properties & properties)
|
const Properties &properties)
|
||||||
{
|
{
|
||||||
PointCloud nodes(its, support_roots, 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)
|
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
|
// 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
|
// 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.
|
// report_unroutable_* methods will be called as a last resort.
|
||||||
bool build_tree(const indexed_triangle_set & its,
|
void build_tree(const indexed_triangle_set &its,
|
||||||
const std::vector<Node> &support_leafs,
|
const std::vector<Node> &support_leafs,
|
||||||
Builder & builder,
|
Builder &builder,
|
||||||
const Properties & properties = {});
|
const Properties &properties = {});
|
||||||
|
|
||||||
inline bool build_tree(const indexed_triangle_set & its,
|
inline void build_tree(const indexed_triangle_set &its,
|
||||||
const std::vector<Node> &support_leafs,
|
const std::vector<Node> &support_leafs,
|
||||||
Builder && builder,
|
Builder &&builder,
|
||||||
const Properties & properties = {})
|
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.
|
// Helper function to derive a bed polygon only from the model bounding box.
|
||||||
ExPolygon make_bed_poly(const indexed_triangle_set &its);
|
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
|
}} // namespace Slic3r::branchingtree
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user