From d501118eb42ca8582a260be702e76d85cf88694e Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 29 Jun 2023 13:10:17 +0200 Subject: [PATCH] Add --prefilter flag to draw.py --- src/ifcopenshell-python/ifcopenshell/draw.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/draw.py b/src/ifcopenshell-python/ifcopenshell/draw.py index 04f1b3a39d..3e1a25d149 100644 --- a/src/ifcopenshell-python/ifcopenshell/draw.py +++ b/src/ifcopenshell-python/ifcopenshell/draw.py @@ -59,6 +59,7 @@ class draw_settings: cells: bool = True merge_cells: bool = False include_projection: bool = True + prefilter: bool = True def main(settings, files, iterators=None, merge_projection=True, progress_function=DO_NOTHING): @@ -131,6 +132,8 @@ def main(settings, files, iterators=None, merge_projection=True, progress_functi if settings.subtract_before_hlr: sr.setSubtractionSettings(W.ALWAYS) + sr.setUsePrefiltering(settings.prefilter) + try: sh = ["none", "full", "left"].index(settings.storey_heights) sr.setDrawStoreyHeights(sh)