Method RefineMesh
RefineMesh(UnsafeTriangulator, OutputData<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, OutputData<double2> output, Allocator allocator, double areaThreshold = 1, double angleThreshold = 0.0872664626, double concentricShells = 0.001, bool constrainBoundary = false)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator | this | |
OutputData<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 restoreBoundary option is disabled. |
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>, OutputData<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, OutputData<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 | |
OutputData<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 restoreBoundary option is disabled. |
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>, OutputData<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, OutputData<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 | |
OutputData<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 restoreBoundary option is disabled. |
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>, OutputData<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, OutputData<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 | |
OutputData<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 restoreBoundary option is disabled. |
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>, OutputData<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, OutputData<fp2> output, Allocator allocator, fp? areaThreshold = null, fp? angleThreshold = null, fp? concentricShells = null, bool constrainBoundary = false)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<fp2> | this | |
OutputData<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 restoreBoundary option is disabled. |
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.