Improved accuracy of boolean modifiers for dynamic voids

This commit is contained in:
Dion Moult
2021-08-15 18:32:42 +10:00
parent f280aa3a13
commit a6c11b7e23
3 changed files with 4 additions and 0 deletions
@@ -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.