mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +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.operation = "DIFFERENCE"
|
||||
modifier.object = opening
|
||||
modifier.solver = "EXACT"
|
||||
modifier.use_self = True
|
||||
else:
|
||||
for modifier in self.element_obj.modifiers:
|
||||
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.operation = "DIFFERENCE"
|
||||
modifier.object = opening
|
||||
modifier.solver = "EXACT"
|
||||
modifier.use_self = True
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user