From 3f05bab4e5b107d59ce513dc03e10786cb5d58a1 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 6 Jul 2025 18:35:19 +0200 Subject: [PATCH] Shape builder: allow translate() on tesselated face sets --- src/ifcopenshell-python/ifcopenshell/util/shape_builder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py index af9c3c5146..8218efe725 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py +++ b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py @@ -636,6 +636,9 @@ class ShapeBuilder: base_position = np.array(c.Position.Location.Coordinates) c.Position.Location.Coordinates = ifc_safe_vector_type(base_position + translation) + elif c.is_a("IfcTessellatedFaceSet"): + c.Coordinates.CoordList = ifc_safe_vector_type(np.array(c.Coordinates.CoordList) + translation) + elif c.is_a("IfcShapeRepresentation"): for item in c.Items: self.translate(item, translation)