mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
@@ -57,7 +57,7 @@ class BlenderImporter:
|
||||
if c.ContextType in ["Plan", "Annotation"]
|
||||
]
|
||||
if self.plan_contexts:
|
||||
self.settings_2d.set_context_ids(self.plan_contexts)
|
||||
self.settings_2d.set("context-ids", self.plan_contexts)
|
||||
|
||||
def create_elements(self, elements):
|
||||
# Based on my experience in viewing BIM models, representations are prioritised as follows:
|
||||
|
||||
@@ -203,7 +203,7 @@ class IfcDiff:
|
||||
"sum_verts": sum(geometry.verts),
|
||||
"min_vert": min(geometry.verts),
|
||||
"max_vert": max(geometry.verts),
|
||||
"matrix": tuple(shape.transformation.matrix.data),
|
||||
"matrix": tuple(shape.transformation.matrix),
|
||||
"openings": sorted(
|
||||
[o.RelatedOpeningElement.GlobalId for o in getattr(element, "HasOpenings", []) or []]
|
||||
),
|
||||
@@ -237,7 +237,7 @@ class IfcDiff:
|
||||
]
|
||||
)
|
||||
if body_contexts:
|
||||
settings.set_context_ids(body_contexts)
|
||||
settings.set("context-ids", body_contexts)
|
||||
return settings
|
||||
|
||||
def json_dump_default(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user