mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
Improved accuracy of boolean modifiers for dynamic voids
This commit is contained in:
@@ -228,6 +228,8 @@ class SwitchRepresentation(bpy.types.Operator):
|
|||||||
modifier = self.element_obj.modifiers.new("IfcOpeningElement", "BOOLEAN")
|
modifier = self.element_obj.modifiers.new("IfcOpeningElement", "BOOLEAN")
|
||||||
modifier.operation = "DIFFERENCE"
|
modifier.operation = "DIFFERENCE"
|
||||||
modifier.object = opening
|
modifier.object = opening
|
||||||
|
modifier.solver = "EXACT"
|
||||||
|
modifier.use_self = True
|
||||||
else:
|
else:
|
||||||
for modifier in self.element_obj.modifiers:
|
for modifier in self.element_obj.modifiers:
|
||||||
if modifier.type == "BOOLEAN" and "IfcOpeningElement" in modifier.name:
|
if modifier.type == "BOOLEAN" and "IfcOpeningElement" in modifier.name:
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ class AddOpening(bpy.types.Operator):
|
|||||||
modifier = obj.modifiers.new("IfcOpeningElement", "BOOLEAN")
|
modifier = obj.modifiers.new("IfcOpeningElement", "BOOLEAN")
|
||||||
modifier.operation = "DIFFERENCE"
|
modifier.operation = "DIFFERENCE"
|
||||||
modifier.object = opening
|
modifier.object = opening
|
||||||
|
modifier.solver = "EXACT"
|
||||||
|
modifier.use_self = True
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user