Fem: Fix examples affected by Part workbench preference parameter
This commit is contained in:
committed by
Chris Hennes
parent
b54bbddc4e
commit
06f2ea4ee9
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user