ITOOSOFT Forum

RailClone => RailClone Pro (*) => Topic started by: nubo on December 17, 2025, 11:46:16 am

Title: Expressions - section length between corners
Post by: nubo on December 17, 2025, 11:46:16 am
Hi,
I was wondering if there's a way to get current line length of the actual spline (between vertices) regardless of evenly and markers divisions?
My precise use case is that I need to find the longest line of a closed spline and then generate evenly segments along that line only. Unfortunately XSectionLength is affected by the evenly so it gives me only the virtual spline section length not the actual spline's line length.
Title: Re: Expressions - section length between corners
Post by: Michal KarmazĂ­n on December 17, 2025, 11:50:41 am
Hi,

Yes, the XSectionAdjustedLength attribute returns the length of the current section on the X Spline, subtracting the size of any adjacent Start, End, Corner, Evenly, or Marker segments. I hope this helps.

Best regards,
Title: Re: Expressions - section length between corners
Post by: nubo on December 17, 2025, 12:16:55 pm
Thanks Michal,
But the XSectionAdjustedLength will return the real distance left for the default segment. What I need is the length between one vertex and another regardless of whether there is any evenly subdivision and regardless of the X size of the segments assigned to start, evenly, corner and end nodes. Correct me if I'm wrong.
Maybe I didn't explain my case clearly.
Let's say I have a spline that is an uneven edged triangle. I need the evenly segments generated only along the longest side of the triangle. Will XSectionAdjustedLength help me here?