Add --prefilter flag to draw.py

This commit is contained in:
Thomas Krijnen
2023-06-29 13:10:17 +02:00
parent 0a03d20133
commit d501118eb4
@@ -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)