mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Add --prefilter flag to draw.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user