BurstTriangulator
v3.8.0
Search Results for

    Show / Hide Table of Contents

    Method RefineMesh

    RefineMesh(UnsafeTriangulator, NativeOutputData<double2>, Allocator, double, double, double, bool)

    Refines the mesh for a valid triangulation in output. Refinement parameters can be provided with the selected precision type T in generics, which is especially useful for fixed-point arithmetic. Refinement parameters in Args are restricted to float precision.

    Declaration
    public static void RefineMesh(this UnsafeTriangulator @this, NativeOutputData<double2> output, Allocator allocator, double areaThreshold = 1, double angleThreshold = 0.0872664626, double concentricShells = 0.001, bool constrainBoundary = false)
    Parameters
    Type Name Description
    UnsafeTriangulator this
    NativeOutputData<double2> output
    Allocator allocator

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

    double areaThreshold
    double angleThreshold

    Expressed in radians. Default: 5° = 0.0872664626 rad.

    double concentricShells
    bool constrainBoundary

    Used to constrain boundary halfedges. Since the refinement algorithm (whether for constrained triangulation or not) requires constrained halfedges at the boundary, not setting this option may cause unexpected behavior, especially when the output was generated without the RestoreBoundary or AutoHolesAndBoundary options, or when UseAlphaShapeFilter was enabled.

    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.

    RefineMesh(UnsafeTriangulator<float2>, NativeOutputData<float2>, Allocator, float, float, float, bool)

    Refines the mesh for a valid triangulation in output. Refinement parameters can be provided with the selected precision type T in generics, which is especially useful for fixed-point arithmetic. Refinement parameters in Args are restricted to float precision.

    Declaration
    public static void RefineMesh(this UnsafeTriangulator<float2> @this, NativeOutputData<float2> output, Allocator allocator, float areaThreshold = 1, float angleThreshold = 0.08726646, float concentricShells = 0.001, bool constrainBoundary = false)
    Parameters
    Type Name Description
    UnsafeTriangulator<float2> this
    NativeOutputData<float2> output
    Allocator allocator

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

    float areaThreshold
    float angleThreshold

    Expressed in radians. Default: 5° = 0.0872664626 rad.

    float concentricShells
    bool constrainBoundary

    Used to constrain boundary halfedges. Since the refinement algorithm (whether for constrained triangulation or not) requires constrained halfedges at the boundary, not setting this option may cause unexpected behavior, especially when the output was generated without the RestoreBoundary or AutoHolesAndBoundary options, or when UseAlphaShapeFilter was enabled.

    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.

    RefineMesh(UnsafeTriangulator<Vector2>, NativeOutputData<Vector2>, Allocator, float, float, float, bool)

    Refines the mesh for a valid triangulation in output. Refinement parameters can be provided with the selected precision type T in generics, which is especially useful for fixed-point arithmetic. Refinement parameters in Args are restricted to float precision.

    Declaration
    public static void RefineMesh(this UnsafeTriangulator<Vector2> @this, NativeOutputData<Vector2> output, Allocator allocator, float areaThreshold = 1, float angleThreshold = 0.08726646, float concentricShells = 0.001, bool constrainBoundary = false)
    Parameters
    Type Name Description
    UnsafeTriangulator<Vector2> this
    NativeOutputData<Vector2> output
    Allocator allocator

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

    float areaThreshold
    float angleThreshold

    Expressed in radians. Default: 5° = 0.0872664626 rad.

    float concentricShells
    bool constrainBoundary

    Used to constrain boundary halfedges. Since the refinement algorithm (whether for constrained triangulation or not) requires constrained halfedges at the boundary, not setting this option may cause unexpected behavior, especially when the output was generated without the RestoreBoundary or AutoHolesAndBoundary options, or when UseAlphaShapeFilter was enabled.

    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.

    RefineMesh(UnsafeTriangulator<double2>, NativeOutputData<double2>, Allocator, double, double, double, bool)

    Refines the mesh for a valid triangulation in output. Refinement parameters can be provided with the selected precision type T in generics, which is especially useful for fixed-point arithmetic. Refinement parameters in Args are restricted to float precision.

    Declaration
    public static void RefineMesh(this UnsafeTriangulator<double2> @this, NativeOutputData<double2> output, Allocator allocator, double areaThreshold = 1, double angleThreshold = 0.0872664626, double concentricShells = 0.001, bool constrainBoundary = false)
    Parameters
    Type Name Description
    UnsafeTriangulator<double2> this
    NativeOutputData<double2> output
    Allocator allocator

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

    double areaThreshold
    double angleThreshold

    Expressed in radians. Default: 5° = 0.0872664626 rad.

    double concentricShells
    bool constrainBoundary

    Used to constrain boundary halfedges. Since the refinement algorithm (whether for constrained triangulation or not) requires constrained halfedges at the boundary, not setting this option may cause unexpected behavior, especially when the output was generated without the RestoreBoundary or AutoHolesAndBoundary options, or when UseAlphaShapeFilter was enabled.

    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.

    RefineMesh(UnsafeTriangulator<fp2>, NativeOutputData<fp2>, Allocator, fp?, fp?, fp?, bool)

    Refines the mesh for a valid triangulation in output. Refinement parameters can be provided with the selected precision type T in generics, which is especially useful for fixed-point arithmetic. Refinement parameters in Args are restricted to float precision.

    Declaration
    public static void RefineMesh(this UnsafeTriangulator<fp2> @this, NativeOutputData<fp2> output, Allocator allocator, fp? areaThreshold = null, fp? angleThreshold = null, fp? concentricShells = null, bool constrainBoundary = false)
    Parameters
    Type Name Description
    UnsafeTriangulator<fp2> this
    NativeOutputData<fp2> output
    Allocator allocator

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

    fp? areaThreshold
    fp? angleThreshold

    Expressed in radians. Default: 5° = 0.0872664626 rad.

    fp? concentricShells
    bool constrainBoundary

    Used to constrain boundary halfedges. Since the refinement algorithm (whether for constrained triangulation or not) requires constrained halfedges at the boundary, not setting this option may cause unexpected behavior, especially when the output was generated without the RestoreBoundary or AutoHolesAndBoundary options, or when UseAlphaShapeFilter was enabled.

    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