Method AlphaShapeFilter
AlphaShapeFilter(UnsafeTriangulator, NativeOutputData<double2>, Allocator, double, bool, bool, bool)
Applies the α-shape filter to the output data.
The filter removes triangles whose circumradius R satisfies the condition R² ≥ α⁻¹.
See the documentation for more details.
Declaration
public static void AlphaShapeFilter(this UnsafeTriangulator @this, NativeOutputData<double2> output, Allocator allocator, double alpha = 1, bool protectPoints = false, bool preventWindmills = false, bool protectConstraints = 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 | alpha | The α-value used by the filter to remove triangles. |
| bool | protectPoints | If set to true, triangle removal is skipped if it would result in any of the triangle's points not belonging to any triangle. |
| bool | preventWindmills | If set to true, triangle removal is skipped if it would result in a windmill structure around any vertex. |
| bool | protectConstraints | If set to true, triangle removal is skipped if any of the triangle's halfedges are constrained. |
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.
AlphaShapeFilter(UnsafeTriangulator<float2>, NativeOutputData<float2>, Allocator, float, bool, bool, bool)
Applies the α-shape filter to the output data.
The filter removes triangles whose circumradius R satisfies the condition R² ≥ α⁻¹.
See the documentation for more details.
Declaration
public static void AlphaShapeFilter(this UnsafeTriangulator<float2> @this, NativeOutputData<float2> output, Allocator allocator, float alpha = 1, bool protectPoints = false, bool preventWindmills = false, bool protectConstraints = 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 | alpha | The α-value used by the filter to remove triangles. |
| bool | protectPoints | If set to true, triangle removal is skipped if it would result in any of the triangle's points not belonging to any triangle. |
| bool | preventWindmills | If set to true, triangle removal is skipped if it would result in a windmill structure around any vertex. |
| bool | protectConstraints | If set to true, triangle removal is skipped if any of the triangle's halfedges are constrained. |
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.
AlphaShapeFilter(UnsafeTriangulator<Vector2>, NativeOutputData<Vector2>, Allocator, float, bool, bool, bool)
Applies the α-shape filter to the output data.
The filter removes triangles whose circumradius R satisfies the condition R² ≥ α⁻¹.
See the documentation for more details.
Declaration
public static void AlphaShapeFilter(this UnsafeTriangulator<Vector2> @this, NativeOutputData<Vector2> output, Allocator allocator, float alpha = 1, bool protectPoints = false, bool preventWindmills = false, bool protectConstraints = 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 | alpha | The α-value used by the filter to remove triangles. |
| bool | protectPoints | If set to true, triangle removal is skipped if it would result in any of the triangle's points not belonging to any triangle. |
| bool | preventWindmills | If set to true, triangle removal is skipped if it would result in a windmill structure around any vertex. |
| bool | protectConstraints | If set to true, triangle removal is skipped if any of the triangle's halfedges are constrained. |
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.
AlphaShapeFilter(UnsafeTriangulator<double2>, NativeOutputData<double2>, Allocator, double, bool, bool, bool)
Applies the α-shape filter to the output data.
The filter removes triangles whose circumradius R satisfies the condition R² ≥ α⁻¹.
See the documentation for more details.
Declaration
public static void AlphaShapeFilter(this UnsafeTriangulator<double2> @this, NativeOutputData<double2> output, Allocator allocator, double alpha = 1, bool protectPoints = false, bool preventWindmills = false, bool protectConstraints = 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 | alpha | The α-value used by the filter to remove triangles. |
| bool | protectPoints | If set to true, triangle removal is skipped if it would result in any of the triangle's points not belonging to any triangle. |
| bool | preventWindmills | If set to true, triangle removal is skipped if it would result in a windmill structure around any vertex. |
| bool | protectConstraints | If set to true, triangle removal is skipped if any of the triangle's halfedges are constrained. |
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.
AlphaShapeFilter(UnsafeTriangulator<int2>, NativeOutputData<int2>, Allocator, float, bool, bool, bool)
Applies the α-shape filter to the output data.
The filter removes triangles whose circumradius R satisfies the condition R² ≥ α⁻¹.
See the documentation for more details.
Declaration
public static void AlphaShapeFilter(this UnsafeTriangulator<int2> @this, NativeOutputData<int2> output, Allocator allocator, float alpha = 1, bool protectPoints = false, bool preventWindmills = false, bool protectConstraints = false)
Parameters
| Type | Name | Description |
|---|---|---|
| UnsafeTriangulator<int2> | this | |
| NativeOutputData<int2> | output | |
| Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
| float | alpha | The α-value used by the filter to remove triangles. |
| bool | protectPoints | If set to true, triangle removal is skipped if it would result in any of the triangle's points not belonging to any triangle. |
| bool | preventWindmills | If set to true, triangle removal is skipped if it would result in a windmill structure around any vertex. |
| bool | protectConstraints | If set to true, triangle removal is skipped if any of the triangle's halfedges are constrained. |
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.
AlphaShapeFilter(UnsafeTriangulator<fp2>, NativeOutputData<fp2>, Allocator, fp?, bool, bool, bool)
Applies the α-shape filter to the output data.
The filter removes triangles whose circumradius R satisfies the condition R² ≥ α⁻¹.
See the documentation for more details.
Declaration
public static void AlphaShapeFilter(this UnsafeTriangulator<fp2> @this, NativeOutputData<fp2> output, Allocator allocator, fp? alpha = null, bool protectPoints = false, bool preventWindmills = false, bool protectConstraints = 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? | alpha | The α-value used by the filter to remove triangles. |
| bool | protectPoints | If set to true, triangle removal is skipped if it would result in any of the triangle's points not belonging to any triangle. |
| bool | preventWindmills | If set to true, triangle removal is skipped if it would result in a windmill structure around any vertex. |
| bool | protectConstraints | If set to true, triangle removal is skipped if any of the triangle's halfedges are constrained. |
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.