mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
Add --prefilter flag to draw.py
This commit is contained in:
@@ -59,6 +59,7 @@ class draw_settings:
|
|||||||
cells: bool = True
|
cells: bool = True
|
||||||
merge_cells: bool = False
|
merge_cells: bool = False
|
||||||
include_projection: bool = True
|
include_projection: bool = True
|
||||||
|
prefilter: bool = True
|
||||||
|
|
||||||
|
|
||||||
def main(settings, files, iterators=None, merge_projection=True, progress_function=DO_NOTHING):
|
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:
|
if settings.subtract_before_hlr:
|
||||||
sr.setSubtractionSettings(W.ALWAYS)
|
sr.setSubtractionSettings(W.ALWAYS)
|
||||||
|
|
||||||
|
sr.setUsePrefiltering(settings.prefilter)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sh = ["none", "full", "left"].index(settings.storey_heights)
|
sh = ["none", "full", "left"].index(settings.storey_heights)
|
||||||
sr.setDrawStoreyHeights(sh)
|
sr.setDrawStoreyHeights(sh)
|
||||||
|
|||||||
Reference in New Issue
Block a user