BurstTriangulator
v3.8.0
Search Results for

    Show / Hide Table of Contents

    Method DynamicSplitHalfedge

    DynamicSplitHalfedge(UnsafeTriangulator, NativeOutputData<double2>, int, double, Allocator)

    Splits the halfedge specified by he by inserting a point at a position determined by linear interpolation. The position is interpolated between the start and end points of the halfedge in the triangulation output using alpha as the interpolation parameter. This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained, the two resulting sub-segments will also be marked as constrained.

    Declaration
    public static void DynamicSplitHalfedge(this UnsafeTriangulator @this, NativeOutputData<double2> output, int he, double alpha, Allocator allocator)
    Parameters
    Type Name Description
    UnsafeTriangulator this
    NativeOutputData<double2> output
    int he

    The index of the halfedge to split.

    double alpha

    The interpolation parameter for positioning the new point between the start and end points of the halfedge, where p = (1 - alpha) * start + alpha * end.

    Allocator allocator

    The allocator to use. If called from a job, consider using Allocator.Temp.

    Remarks

    Note: This method requires that output contains valid triangulation data. The output native containers must be allocated by the user. Some buffers are optional; refer to the documentation for more details.

    DynamicSplitHalfedge(UnsafeTriangulator<float2>, NativeOutputData<float2>, int, float, Allocator)

    Splits the halfedge specified by he by inserting a point at a position determined by linear interpolation. The position is interpolated between the start and end points of the halfedge in the triangulation output using alpha as the interpolation parameter. This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained, the two resulting sub-segments will also be marked as constrained.

    Declaration
    public static void DynamicSplitHalfedge(this UnsafeTriangulator<float2> @this, NativeOutputData<float2> output, int he, float alpha, Allocator allocator)
    Parameters
    Type Name Description
    UnsafeTriangulator<float2> this
    NativeOutputData<float2> output
    int he

    The index of the halfedge to split.

    float alpha

    The interpolation parameter for positioning the new point between the start and end points of the halfedge, where p = (1 - alpha) * start + alpha * end.

    Allocator allocator

    The allocator to use. If called from a job, consider using Allocator.Temp.

    Remarks

    Note: This method requires that output contains valid triangulation data. The output native containers must be allocated by the user. Some buffers are optional; refer to the documentation for more details.

    DynamicSplitHalfedge(UnsafeTriangulator<Vector2>, NativeOutputData<Vector2>, int, float, Allocator)

    Splits the halfedge specified by he by inserting a point at a position determined by linear interpolation. The position is interpolated between the start and end points of the halfedge in the triangulation output using alpha as the interpolation parameter. This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained, the two resulting sub-segments will also be marked as constrained.

    Declaration
    public static void DynamicSplitHalfedge(this UnsafeTriangulator<Vector2> @this, NativeOutputData<Vector2> output, int he, float alpha, Allocator allocator)
    Parameters
    Type Name Description
    UnsafeTriangulator<Vector2> this
    NativeOutputData<Vector2> output
    int he

    The index of the halfedge to split.

    float alpha

    The interpolation parameter for positioning the new point between the start and end points of the halfedge, where p = (1 - alpha) * start + alpha * end.

    Allocator allocator

    The allocator to use. If called from a job, consider using Allocator.Temp.

    Remarks

    Note: This method requires that output contains valid triangulation data. The output native containers must be allocated by the user. Some buffers are optional; refer to the documentation for more details.

    DynamicSplitHalfedge(UnsafeTriangulator<double2>, NativeOutputData<double2>, int, double, Allocator)

    Splits the halfedge specified by he by inserting a point at a position determined by linear interpolation. The position is interpolated between the start and end points of the halfedge in the triangulation output using alpha as the interpolation parameter. This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained, the two resulting sub-segments will also be marked as constrained.

    Declaration
    public static void DynamicSplitHalfedge(this UnsafeTriangulator<double2> @this, NativeOutputData<double2> output, int he, double alpha, Allocator allocator)
    Parameters
    Type Name Description
    UnsafeTriangulator<double2> this
    NativeOutputData<double2> output
    int he

    The index of the halfedge to split.

    double alpha

    The interpolation parameter for positioning the new point between the start and end points of the halfedge, where p = (1 - alpha) * start + alpha * end.

    Allocator allocator

    The allocator to use. If called from a job, consider using Allocator.Temp.

    Remarks

    Note: This method requires that output contains valid triangulation data. The output native containers must be allocated by the user. Some buffers are optional; refer to the documentation for more details.

    DynamicSplitHalfedge(UnsafeTriangulator<fp2>, NativeOutputData<fp2>, int, fp, Allocator)

    Splits the halfedge specified by he by inserting a point at a position determined by linear interpolation. The position is interpolated between the start and end points of the halfedge in the triangulation output using alpha as the interpolation parameter. This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained, the two resulting sub-segments will also be marked as constrained.

    Declaration
    public static void DynamicSplitHalfedge(this UnsafeTriangulator<fp2> @this, NativeOutputData<fp2> output, int he, fp alpha, Allocator allocator)
    Parameters
    Type Name Description
    UnsafeTriangulator<fp2> this
    NativeOutputData<fp2> output
    int he

    The index of the halfedge to split.

    fp alpha

    The interpolation parameter for positioning the new point between the start and end points of the halfedge, where p = (1 - alpha) * start + alpha * end.

    Allocator allocator

    The allocator to use. If called from a job, consider using Allocator.Temp.

    Remarks

    Note: This method requires that output contains valid triangulation data. The output native containers must be allocated by the user. Some buffers are optional; refer to the documentation for more details.

    In this article
    Back to top Generated by DocFX | Documentation © 2024 by Andrzej Więckowski is licensed under CC BY 4.0