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