mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix #6106. True north must always be 2D.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user