From b1c730c04d7f3fd2b9733efeba61eab07f89c5fe Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 12 Nov 2022 15:49:29 +0100 Subject: [PATCH] draw.include_projection setting --- src/ifcopenshell-python/ifcopenshell/draw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/draw.py b/src/ifcopenshell-python/ifcopenshell/draw.py index 42755555b5..3b3c76d4a0 100644 --- a/src/ifcopenshell-python/ifcopenshell/draw.py +++ b/src/ifcopenshell-python/ifcopenshell/draw.py @@ -58,6 +58,7 @@ class draw_settings: profile_threshold: int = -1 cells: bool = True merge_cells: bool = False + include_projection: bool = True def main(settings, files, iterators=None, merge_projection=True, progress_function=DO_NOTHING): @@ -116,8 +117,7 @@ def main(settings, files, iterators=None, merge_projection=True, progress_functi sr.setPolygonal(True) sr.setUseNamespace(True) - # sane default? - sr.setAlwaysProject(True) + sr.setAlwaysProject(settings.include_projection) sr.setProfileThreshold(settings.profile_threshold) sr.setBoundingRectangle(settings.width, settings.height)