mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-10 03:01:46 +08:00
Use old pillar creation functions for default support tree
This commit is contained in:
parent
1e9bd28714
commit
d3a2f11e29
@ -344,21 +344,15 @@ bool DefaultSupportTree::create_ground_pillar(const Junction &hjp,
|
|||||||
const Vec3d &sourcedir,
|
const Vec3d &sourcedir,
|
||||||
long head_id)
|
long head_id)
|
||||||
{
|
{
|
||||||
long pillar_id = SupportTreeNode::ID_UNSET;
|
auto [ret, pillar_id] = sla::create_ground_pillar(suptree_ex_policy,
|
||||||
|
m_builder, m_sm, hjp,
|
||||||
auto conn = sla::find_pillar_route(suptree_ex_policy, m_sm, hjp, sourcedir, hjp.r);
|
sourcedir, hjp.r, head_id);
|
||||||
if (conn)
|
|
||||||
pillar_id = build_ground_connection(m_builder, m_sm, conn);
|
|
||||||
|
|
||||||
// auto [ret, pillar_id] = sla::create_ground_pillar(suptree_ex_policy,
|
|
||||||
// m_builder, m_sm, hjp,
|
|
||||||
// sourcedir, hjp.r, head_id);
|
|
||||||
|
|
||||||
if (pillar_id >= 0) // Save the pillar endpoint in the spatial index
|
if (pillar_id >= 0) // Save the pillar endpoint in the spatial index
|
||||||
m_pillar_index.guarded_insert(m_builder.pillar(pillar_id).endpt,
|
m_pillar_index.guarded_insert(m_builder.pillar(pillar_id).endpt,
|
||||||
unsigned(pillar_id));
|
unsigned(pillar_id));
|
||||||
|
|
||||||
return bool(conn);
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DefaultSupportTree::add_pinheads()
|
void DefaultSupportTree::add_pinheads()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user