Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: Dragan on February 18, 2019, 12:11:31 PM
-
Hi, is this work as expected?
-
Hi, it doesn't work because XSplinePosition returns the position where the Default segment is placed, not the end of the spline.
Probably the last segment is placed at 0.85 or so.
Also, for real values comparison, i suggest to not use == 0. It may fail because the rounding error. Instead, < 0.001 is a better solution.
-
Thank You Carlos,
I`ll do it with a compose operator. Since my start/end are fixed X-size and middle size should act as Default/Scale, I`ll calculate the middle X-size: XSplineLength-Start-End.
Dragan