mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
black
This commit is contained in:
@@ -107,7 +107,7 @@ def _add_segment_to_layout(file: ifcopenshell.file, layout: entity_instance, seg
|
|||||||
y = float(end[1, 3]) / unit_scale
|
y = float(end[1, 3]) / unit_scale
|
||||||
dx = float(end[0, 0])
|
dx = float(end[0, 0])
|
||||||
dy = float(end[1, 0])
|
dy = float(end[1, 0])
|
||||||
zero_length_segment.DesignParameters.StartPoint.Coordinates = (x,y)
|
zero_length_segment.DesignParameters.StartPoint.Coordinates = (x, y)
|
||||||
zero_length_segment.DesignParameters.StartDirection = dy / dx
|
zero_length_segment.DesignParameters.StartDirection = dy / dx
|
||||||
elif zero_length_segment.DesignParameters.is_a("IfcAlignmentVerticalSegment"):
|
elif zero_length_segment.DesignParameters.is_a("IfcAlignmentVerticalSegment"):
|
||||||
y = float(end[1, 3]) / unit_scale
|
y = float(end[1, 3]) / unit_scale
|
||||||
|
|||||||
Reference in New Issue
Block a user