Use latest syntax for setting geometry settings #5299

Also fixed:
- old include_curves use
- missing use of 'include_curves' in ifcopenshell.draw
This commit is contained in:
Andrej730
2024-09-05 10:53:52 +05:00
parent fcf41bf00c
commit ea6df7f617
6 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -231,9 +231,9 @@ class IfcDiff:
def get_settings(self, ifc: ifcopenshell.file) -> ifcopenshell.geom.settings:
settings = ifcopenshell.geom.settings()
# Are you feeling lucky?
settings.set(settings.DISABLE_BOOLEAN_RESULT, True)
settings.set("disable-boolean-result", True)
# Are you feeling very lucky?
settings.set(settings.DISABLE_OPENING_SUBTRACTIONS, True)
settings.set("disable-opening-subtractions", True)
# Facetation is to accommodate broken Revit files
# See https://forums.buildingsmart.org/t/suggestions-on-how-to-improve-clarity-of-representation-context-usage-in-documentation/3663/6?u=moult
body_contexts = [