12-31-2013, 11:32 AM
Hi,
instead of using GetChild, better store a reference to the Spline and access it's segments directly, like mySpline[2] to get the 2nd spline segment. If you want to access the CP's directly, use the mySpline.ControlPoints[] list.
Don't get confused: Control Points and Segments are more or less the same (a CurvySplineSegment component). The difference is that the term Segment refers to a visible spline part (=a CP and curve part ranging from there to the next CP), so if you have a nonclosed spline it has n segments and n+1 CP's.
instead of using GetChild, better store a reference to the Spline and access it's segments directly, like mySpline[2] to get the 2nd spline segment. If you want to access the CP's directly, use the mySpline.ControlPoints[] list.
Don't get confused: Control Points and Segments are more or less the same (a CurvySplineSegment component). The difference is that the term Segment refers to a visible spline part (=a CP and curve part ranging from there to the next CP), so if you have a nonclosed spline it has n segments and n+1 CP's.