Fem: Fix examples affected by Part workbench preference parameter

This commit is contained in:
marioalexis
2024-10-11 22:06:32 -03:00
committed by Chris Hennes
parent b54bbddc4e
commit 06f2ea4ee9
2 changed files with 3 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ def setup(doc=None, solvertype="ccxtools"):
fusion = doc.addObject("Part::MultiFuse", "Fusion")
fusion.Shapes = [stiffener, circumference]
fusion.Refine = True
doc.recompute()
centerhole = doc.addObject("Part::Cylinder", "CenterHole")
@@ -102,6 +103,7 @@ def setup(doc=None, solvertype="ccxtools"):
ring_bottom = doc.addObject("Part::Cut", "RingBottom")
ring_bottom.Base = fusion
ring_bottom.Tool = centerhole
ring_bottom.Refine = True
doc.recompute()
# standard ring

View File

@@ -106,6 +106,7 @@ def setup(doc=None, solvertype="ccxtools"):
# all geom fusion
geom_obj = doc.addObject("Part::MultiFuse", "AllGeomFusion")
geom_obj.Shapes = [bottom_box_obj, top_halfcyl_obj]
geom_obj.Refine = True
if FreeCAD.GuiUp:
bottom_box_obj.ViewObject.hide()
top_halfcyl_obj.ViewObject.hide()