mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Add method for bridge addition with Head parameter to fill the bridge_id
This commit is contained in:
parent
3f698c4ccf
commit
95e22d8fd4
2 changed files with 25 additions and 7 deletions
|
@ -582,7 +582,7 @@ void SupportTreeBuildsteps::create_ground_pillar(const Vec3d &jp,
|
|||
// the ground level only.
|
||||
|
||||
normal_mode = false;
|
||||
double mind = min_dist - dist;
|
||||
double mind = min_dist - dist;
|
||||
double azimuth = std::atan2(sourcedir(Y), sourcedir(X));
|
||||
double sinpolar = std::sin(PI - m_cfg.bridge_slope);
|
||||
double cospolar = std::cos(PI - m_cfg.bridge_slope);
|
||||
|
@ -964,12 +964,11 @@ void SupportTreeBuildsteps::routing_to_model()
|
|||
auto routedown = [this](Head& head, const Vec3d& dir, double dist)
|
||||
{
|
||||
head.transform();
|
||||
Vec3d hjp = head.junction_point();
|
||||
Vec3d endp = hjp + dist * dir;
|
||||
m_builder.add_bridge(hjp, endp, head.r_back_mm);
|
||||
Vec3d endp = head.junction_point() + dist * dir;
|
||||
m_builder.add_bridge(head, endp);
|
||||
m_builder.add_junction(endp, head.r_back_mm);
|
||||
|
||||
this->create_ground_pillar(endp, dir, head.r_back_mm, head.id);
|
||||
this->create_ground_pillar(endp, dir, head.r_back_mm);
|
||||
};
|
||||
|
||||
std::vector<unsigned> modelpillars;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue