Method DuplicateSpline
DuplicateSpline(ISplineContainer, SplineKnotIndex, SplineKnotIndex, out int)
Duplicate a spline between 2 knots of a source spline.
Declaration
public static void DuplicateSpline(this ISplineContainer container, SplineKnotIndex fromKnot, SplineKnotIndex toKnot, out int newSplineIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| ISplineContainer | container | The target SplineContainer. |
| SplineKnotIndex | fromKnot | The start knot to use to duplicate the spline. |
| SplineKnotIndex | toKnot | The end knot to use to duplicate the spline. |
| int | newSplineIndex | The index of the new created spline in the container. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the provided knots aren't valid or aren't on the same spline. |