feat(PD): tapered threads support, NPT and BSPT are now possible

This commit is contained in:
Alfredo Monclus
2024-08-03 19:18:32 -03:00
parent 588f4c3b00
commit df22f8060d

View File

@@ -2297,7 +2297,9 @@ TopoDS_Shape Hole::makeThread(const gp_Vec& xDir, const gp_Vec& zDir, double len
helixLength = holeDepth + Pitch / 8;
}
}
TopoDS_Shape helix = TopoShape().makeLongHelix(Pitch, helixLength, Dmaj, 0.0, leftHanded);
double helixAngle =
Tapered.getValue() ? TaperedAngle.getValue() - 90 : 0.0;
TopoDS_Shape helix = TopoShape().makeLongHelix(Pitch, helixLength, Dmaj, helixAngle, leftHanded);
gp_Pnt origo(0.0, 0.0, 0.0);
gp_Dir dir_axis1(0.0, 0.0, 1.0); // pointing along the helix axis, as created.