[PD] Revert 316506f, back to shell algo for some helix cases (#15678)

* [PD] Revert 316506f, back to shell algo for some helix cases

* fix test accuracy
This commit is contained in:
Florian Foinant-Willig
2024-08-05 17:40:00 +02:00
committed by GitHub
parent 1f67a96a66
commit 84e25ed38d
3 changed files with 78 additions and 11 deletions

View File

@@ -95,7 +95,7 @@ class TestHelix(unittest.TestCase):
profileSketch.addGeometry(Part.Circle(FreeCAD.Vector(2, 0, 0), FreeCAD.Vector(0,0,1), 0.5) )
self.Doc.recompute()
self.assertAlmostEqual(helix.Shape.Volume, 100.63,places=2)
self.assertAlmostEqual(helix.Shape.Volume, 100.63, places=2)
def testRectangle(self):
@@ -174,7 +174,7 @@ class TestHelix(unittest.TestCase):
helix.Mode = 0
helix.Reversed = True
self.Doc.recompute()
self.assertAlmostEqual(helix.Shape.Volume/1e5, 3.8828,places=4)
self.assertAlmostEqual(helix.Shape.Volume/1e5, 3.8828, places=3)
def tearDown(self):
FreeCAD.closeDocument("PartDesignTestHelix")