mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 10:59:17 +00:00
More consistent PlanLevel and SectionLevel in viewport and svg
Now it's using first vert instead of last to calculate height (same way svgwriter does it)
This commit is contained in:
@@ -1089,7 +1089,7 @@ class PlanLevelDecorator(BaseDecorator):
|
|||||||
box_alignment = "bottom-right"
|
box_alignment = "bottom-right"
|
||||||
dir *= -1
|
dir *= -1
|
||||||
|
|
||||||
z = verts[-1].z / unit_scale
|
z = verts[0].z / unit_scale
|
||||||
z = ifcopenshell.util.geolocation.auto_z2e(tool.Ifc.get(), z)
|
z = ifcopenshell.util.geolocation.auto_z2e(tool.Ifc.get(), z)
|
||||||
z *= unit_scale
|
z *= unit_scale
|
||||||
text = "RL " + self.format_value(context, z)
|
text = "RL " + self.format_value(context, z)
|
||||||
@@ -1147,7 +1147,7 @@ class SectionLevelDecorator(BaseDecorator):
|
|||||||
tag = storey.Name if storey else element.Description
|
tag = storey.Name if storey else element.Description
|
||||||
|
|
||||||
for verts in splines:
|
for verts in splines:
|
||||||
z = verts[-1].z / unit_scale
|
z = verts[0].z / unit_scale
|
||||||
z = ifcopenshell.util.geolocation.auto_z2e(tool.Ifc.get(), z)
|
z = ifcopenshell.util.geolocation.auto_z2e(tool.Ifc.get(), z)
|
||||||
z *= unit_scale
|
z *= unit_scale
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user