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
@@ -19,6 +19,7 @@ class TestGeomSettings:
assert settings.get("use-python-opencascade") is False
assert "USE_PYTHON_OPENCASCADE = False" in repr(settings)
# Testing both new and old ways of setting geometry settings.
if ifcopenshell.geom.has_occ:
settings.set("use-python-opencascade", True)
settings.set(settings.USE_PYTHON_OPENCASCADE, True)