mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
draw.include_projection setting
This commit is contained in:
@@ -58,6 +58,7 @@ class draw_settings:
|
|||||||
profile_threshold: int = -1
|
profile_threshold: int = -1
|
||||||
cells: bool = True
|
cells: bool = True
|
||||||
merge_cells: bool = False
|
merge_cells: bool = False
|
||||||
|
include_projection: 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):
|
||||||
@@ -116,8 +117,7 @@ def main(settings, files, iterators=None, merge_projection=True, progress_functi
|
|||||||
sr.setPolygonal(True)
|
sr.setPolygonal(True)
|
||||||
sr.setUseNamespace(True)
|
sr.setUseNamespace(True)
|
||||||
|
|
||||||
# sane default?
|
sr.setAlwaysProject(settings.include_projection)
|
||||||
sr.setAlwaysProject(True)
|
|
||||||
|
|
||||||
sr.setProfileThreshold(settings.profile_threshold)
|
sr.setProfileThreshold(settings.profile_threshold)
|
||||||
sr.setBoundingRectangle(settings.width, settings.height)
|
sr.setBoundingRectangle(settings.width, settings.height)
|
||||||
|
|||||||
Reference in New Issue
Block a user