Fix #0001722 Left-handed helix with an angle>0 produces 1 too many turns

This commit is contained in:
WandererFan 2014-11-05 17:29:44 -05:00 committed by Yorik van Havre
parent a88038c7a0
commit ba97d17b2a

View File

@ -1614,9 +1614,6 @@ TopoDS_Shape TopoShape::makeHelix(Standard_Real pitch, Standard_Real height,
gp_Dir2d aDir(2. * M_PI, pitch);
Standard_Real coneDir = 1.0;
if (leftHanded) {
//aPnt.SetCoord(0.0, height);
//aDir.SetCoord(2.0 * PI, -pitch);
aPnt.SetCoord(2. * M_PI, 0.0);
aDir.SetCoord(-2. * M_PI, pitch);
coneDir = -1.0;
}
@ -1685,7 +1682,6 @@ TopoDS_Shape TopoShape::makeLongHelix(Standard_Real pitch, Standard_Real height,
gp_Dir2d aDir(2. * M_PI, pitch);
Standard_Real coneDir = 1.0;
if (leftHanded) {
aPnt.SetCoord(2. * M_PI, 0.0);
aDir.SetCoord(-2. * M_PI, pitch);
coneDir = -1.0;
}