From 668462b8fb85863d9ef3d22aaab059c36198f494 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 17 Jun 2025 14:43:47 +0200 Subject: [PATCH] fix: wrong position when converting axis segments to curve --- src/Formplot/FileFormat/FormplotConverter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Formplot/FileFormat/FormplotConverter.cs b/src/Formplot/FileFormat/FormplotConverter.cs index e220f72..6a3329b 100644 --- a/src/Formplot/FileFormat/FormplotConverter.cs +++ b/src/Formplot/FileFormat/FormplotConverter.cs @@ -366,7 +366,9 @@ private static CurveProfilePlot ConvertToCurveProfile( CylindricityPlot source ) var y = Math.Sin( point.Angle ) * source.Actual.Radius; var curvePoint = new CurvePoint( - new Vector( x, y, point.Height * source.Actual.Height ), + segment.SegmentType == SegmentTypes.Axis + ? new Vector( 0, 0, point.Height * source.Actual.Height ) + : new Vector( x, y, point.Height * source.Actual.Height ), new Vector( x, y ).Normalized(), point.Deviation );