From 920177d8c65d71dea28503c3fff7454637b5d792 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 21 Sep 2022 10:50:02 +1000 Subject: [PATCH] Minor fix. See #2416. --- .../ifcopenshell/api/geometry/add_wall_representation.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_wall_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_wall_representation.py index 7454d0037b..29107e848a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_wall_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_wall_representation.py @@ -77,7 +77,13 @@ class Usecase: second_operand = self.file.createIfcHalfSpaceSolid( self.file.createIfcPlane( self.file.createIfcAxis2Placement3D( - self.file.createIfcCartesianPoint((clipping[0][3], clipping[1][3], clipping[2][3])), + self.file.createIfcCartesianPoint( + ( + self.convert_si_to_unit(clipping[0][3]), + self.convert_si_to_unit(clipping[1][3]), + self.convert_si_to_unit(clipping[2][3]), + ) + ), self.file.createIfcDirection((clipping[0][2], clipping[1][2], clipping[2][2])), self.file.createIfcDirection((clipping[0][0], clipping[1][0], clipping[2][0])), )