partdesign: fix failing tapered hole test

The given parameters return an invalid shape. This fails with occt7.4 but doesn't with occt7.3. If the angle is 45 degree the cone is self-intersecting as Hole.Depth > Hole.Diameter/2. Changing the Hole.TaperedAngle to 60 degree solves this issue.
This commit is contained in:
lorenz
2020-05-03 07:47:27 +02:00
committed by abdullahtahiriyo
parent e38d9cbb5d
commit 8be2c08141

View File

@@ -68,7 +68,7 @@ class TestHole(unittest.TestCase):
def testTaperedHole(self):
self.Hole.Diameter = 6
self.Hole.Depth = 5
self.Hole.TaperedAngle = 45
self.Hole.TaperedAngle = 60
self.Hole.ThreadType = 0
self.Hole.HoleCutType = 0
self.Hole.DepthType = 0