TessellateElements - small optimization

tolist() supports conversion of multidimensional arrays too
This commit is contained in:
Andrej730
2025-03-03 13:38:43 +05:00
parent 7f27785927
commit 10d5378ee3
@@ -89,7 +89,7 @@ class Patcher:
shape: Union[ifcopenshell.geom.ShapeType, ifcopenshell.geom.ShapeElementType],
) -> None:
geometry = getattr(shape, "geometry", shape)
v = [[x.tolist() for x in ifcopenshell.util.shape.get_vertices(geometry)]]
v = [ifcopenshell.util.shape.get_vertices(geometry).tolist()]
f = [ifcopenshell.util.shape.get_faces(geometry).tolist()]
replacements[element] = (v, f)