07-23-2022, 10:21 AM
(This post was last modified: 07-23-2022, 10:23 AM by Beaver_Boy.)
I think I found how to do it, so I will write it here to help anybody else that needs it.
This is when using Bezier splines:
To stop neighboring spline segments from changing shape when you delete a segment, all you need to do is set AutoHandles = false for the control points next to the ones you remove. This keeps the original angle of the spline that comes from them.
This is when using Bezier splines:
To stop neighboring spline segments from changing shape when you delete a segment, all you need to do is set AutoHandles = false for the control points next to the ones you remove. This keeps the original angle of the spline that comes from them.
Code:
cpBeforeSplit.AutoHandles = false;
cpAfterSplit.AutoHandles = false;
theSpline.Split(cpAfterSplit);