mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:00:53 +00:00
Add notes on Tekla accommodations (7c3870595)
This commit is contained in:
@@ -428,6 +428,7 @@ class IfcImporter:
|
|||||||
|
|
||||||
rep = representation
|
rep = representation
|
||||||
while True:
|
while True:
|
||||||
|
# Tekla 2023 has missing items, though it's invalid IFC.
|
||||||
if rep.Items and len(rep.Items) == 1 and rep.Items[0].is_a("IfcMappedItem"):
|
if rep.Items and len(rep.Items) == 1 and rep.Items[0].is_a("IfcMappedItem"):
|
||||||
rep_matrix = ifcopenshell.util.placement.get_mappeditem_transformation(rep.Items[0])
|
rep_matrix = ifcopenshell.util.placement.get_mappeditem_transformation(rep.Items[0])
|
||||||
if not np.allclose(rep_matrix, np.eye(4)):
|
if not np.allclose(rep_matrix, np.eye(4)):
|
||||||
|
|||||||
@@ -294,6 +294,7 @@ def resolve_representation(representation: ifcopenshell.entity_instance) -> ifco
|
|||||||
:param representation: IfcRepresentation
|
:param representation: IfcRepresentation
|
||||||
:return: Representation resolved from mappings
|
:return: Representation resolved from mappings
|
||||||
"""
|
"""
|
||||||
|
# Tekla 2023 has missing items and mapped representation, though it's invalid IFC.
|
||||||
if (
|
if (
|
||||||
len(representation.Items or []) == 1
|
len(representation.Items or []) == 1
|
||||||
and representation.Items[0].is_a("IfcMappedItem")
|
and representation.Items[0].is_a("IfcMappedItem")
|
||||||
|
|||||||
Reference in New Issue
Block a user