From 6d01d71c602d682b7b07e595a4325e593f0c78b9 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 6 Dec 2024 12:18:14 +0500 Subject: [PATCH] add_representation.create_cartesian_point - fix missing z offset for 0 values --- .../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 65cbcd1989..82d9eac32e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py @@ -871,7 +871,7 @@ class Usecase: if is_model_coords and self.settings["coordinate_offset"]: x += self.settings["coordinate_offset"][0] y += self.settings["coordinate_offset"][1] - if z: + if z is not None: z += self.settings["coordinate_offset"][2] x = self.convert_si_to_unit(x) y = self.convert_si_to_unit(y)