Toggle navigation
Login
Register
ITOOSOFT Forum
»
RailClone
»
RailClone Pro (*)
»
Expressions - section length between corners
« previous
next »
Print
Pages: [
1
]
Author
Topic: Expressions - section length between corners (Read 21 times)
nubo
Jr. Member
Posts: 66
Expressions - section length between corners
«
on:
Today
at 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.
Logged
Michal Karmazín
ITOOSOFT
Hero Member
Posts: 3208
Re: Expressions - section length between corners
«
Reply #1 on:
Today
at 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,
Logged
nubo
Jr. Member
Posts: 66
Re: Expressions - section length between corners
«
Reply #2 on:
Today
at 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?
Logged
Print
Pages: [
1
]
« previous
next »
ITOOSOFT Forum
»
RailClone
»
RailClone Pro (*)
»
Expressions - section length between corners
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length