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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user