Method JoinSplinesOnKnots
JoinSplinesOnKnots(ISplineContainer, SplineKnotIndex, SplineKnotIndex)
Joins two splines together at the specified knots. The two splines must belong to the same container and the knots must be at an extremity of their respective splines.
Declaration
public static SplineKnotIndex JoinSplinesOnKnots(this ISplineContainer container, SplineKnotIndex mainKnot, SplineKnotIndex otherKnot)
Parameters
Type | Name | Description |
---|---|---|
ISplineContainer | container | The target SplineContainer. |
SplineKnotIndex | mainKnot | The first spline extremity to join. |
SplineKnotIndex | otherKnot | The second spline extremity to join. |
Returns
Type | Description |
---|---|
SplineKnotIndex | The |
Remarks
In case a spline needs to be reversed to join the two extremities, the mainKnot defines which spline will be kept. Hence, the second one will be the reversed one.
Exceptions
Type | Condition |
---|---|
ArgumentException | An exception is thrown on impossible join request (out of bounds parameters, knots on the same spline, non-extremity knots) |