From 9f00e8aef0bfa19e664be189390fc271b7d38463 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 23 Aug 2024 15:41:04 +0500 Subject: [PATCH] Use Point RepresentationType for point clouds in ifc4x3 PointCloud representation type marked as deprecated in ifc4x3, see https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/lexical/IfcShapeRepresentation.htm --- .../ifcopenshell/api/geometry/add_representation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py index b60863cff2..c3f458856e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py @@ -659,7 +659,7 @@ class Usecase: return self.file.createIfcShapeRepresentation( self.settings["context"], self.settings["context"].ContextIdentifier, - "PointCloud", + "Point" if self.file.schema == "IFC4X3" else "PointCloud", [point_cloud], )