docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 SplineKnotIndex of the junction knot.

    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)

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)