Bug#961131: freecad: autopkgtest regression with opencascade 7.4
Source: freecad
Version: 0.18.4+dfsg2-2
Tags: patch
X-Debbugs-CC: debian-ci@lists.debian.org
Severity: serious
User: debian-ci@lists.debian.org
Usertags: regression
Hi Maintainer
Freecad fails its autopkgtests with opencascade 7.4 [1]:
testTaperedHole (PartDesignTests.TestHole.TestHole) ... FAIL
The attached patch is applied in Ubuntu.
Regards
Graham
[1] https://ci.debian.net/packages/f/freecad/
Description: 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.
Author: lorenz <looooo@users.noreply.github.com>
Last-Update: 2020-05-03
--- a/src/Mod/PartDesign/PartDesignTests/TestHole.py
+++ b/src/Mod/PartDesign/PartDesignTests/TestHole.py
@@ -67,7 +67,7 @@
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
Reply to: