From c40d21d9456be04aad3d97831e436134e913c012 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 7 Feb 2025 13:19:33 +1100 Subject: [PATCH] Fix #6106. True north must always be 2D. --- .../ifcopenshell/api/georeference/edit_true_north.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_true_north.py b/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_true_north.py index 15a92c3598..0a7e967fbd 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_true_north.py +++ b/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_true_north.py @@ -69,8 +69,4 @@ def edit_true_north(file: ifcopenshell.file, true_north: Optional[Union[tuple[fl context.TrueNorth = file.create_entity("IfcDirection") else: context.TrueNorth = file.create_entity("IfcDirection") - direction = context.TrueNorth - if context.CoordinateSpaceDimension == 2: - direction.DirectionRatios = (x, y) - else: - direction.DirectionRatios = (x, y, 0.0) + context.TrueNorth.DirectionRatios = (x, y)