Method PlantHoleSeeds
PlantHoleSeeds(UnsafeTriangulator, NativeOutputData<double2>, Allocator, bool, bool, NativeArray<double2>, NativeList<int>)
Plants hole seeds using either the autoHolesAndBoundary
or restoreBoundary
option,
or by using the provided holeSeeds
buffer within the triangulation data in output
.
Declaration
public static void PlantHoleSeeds(this UnsafeTriangulator @this, NativeOutputData<double2> output, Allocator allocator, bool autoHolesAndBoundary = false, bool restoreBoundary = false, NativeArray<double2> holeSeeds = default, NativeList<int> mapping = default)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator | this | |
NativeOutputData<double2> | output | |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
bool | autoHolesAndBoundary | If set to true, holes and boundaries will be created automatically depending on the provided constraints in |
bool | restoreBoundary | If true the mesh boundary is restored using the provided constraints in |
NativeArray<double2> | holeSeeds | Optional buffer containing seeds for holes. |
NativeList<int> | mapping | Optional buffer that can be provided for the extension to construct a mapping from the initial triangles (t1) to the triangles after planting seeds (t2). The condition t1[3i + k] == t2[mapping[3i + k]] (for k ∈ {0, 1, 2}) should hold for triangles that still exist in t2. If mapping[i] == -1, then the corresponding triangle i no longer exists in t2. |
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.
PlantHoleSeeds(UnsafeTriangulator, NativeInputData<double2>, NativeOutputData<double2>, Args, Allocator)
Declaration
[Obsolete("Use PlantHoleSeeds overload without args and input parameters.")]
public static void PlantHoleSeeds(this UnsafeTriangulator @this, NativeInputData<double2> input, NativeOutputData<double2> output, Args args, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator | this | |
NativeInputData<double2> | input | |
NativeOutputData<double2> | output | |
Args | args | |
Allocator | allocator |
PlantHoleSeeds(UnsafeTriangulator<float2>, NativeOutputData<float2>, Allocator, bool, bool, NativeArray<float2>, NativeList<int>)
Plants hole seeds using either the autoHolesAndBoundary
or restoreBoundary
option,
or by using the provided holeSeeds
buffer within the triangulation data in output
.
Declaration
public static void PlantHoleSeeds(this UnsafeTriangulator<float2> @this, NativeOutputData<float2> output, Allocator allocator, bool autoHolesAndBoundary = false, bool restoreBoundary = false, NativeArray<float2> holeSeeds = default, NativeList<int> mapping = default)
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. |
bool | autoHolesAndBoundary | If set to true, holes and boundaries will be created automatically depending on the provided constraints in |
bool | restoreBoundary | If true the mesh boundary is restored using the provided constraints in |
NativeArray<float2> | holeSeeds | Optional buffer containing seeds for holes. |
NativeList<int> | mapping | Optional buffer that can be provided for the extension to construct a mapping from the initial triangles (t1) to the triangles after planting seeds (t2). The condition t1[3i + k] == t2[mapping[3i + k]] (for k ∈ {0, 1, 2}) should hold for triangles that still exist in t2. If mapping[i] == -1, then the corresponding triangle i no longer exists in t2. |
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.
PlantHoleSeeds(UnsafeTriangulator<float2>, NativeInputData<float2>, NativeOutputData<float2>, Args, Allocator)
Declaration
[Obsolete("Use PlantHoleSeeds overload without args and input parameters.")]
public static void PlantHoleSeeds(this UnsafeTriangulator<float2> @this, NativeInputData<float2> input, NativeOutputData<float2> output, Args args, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<float2> | this | |
NativeInputData<float2> | input | |
NativeOutputData<float2> | output | |
Args | args | |
Allocator | allocator |
PlantHoleSeeds(UnsafeTriangulator<Vector2>, NativeOutputData<Vector2>, Allocator, bool, bool, NativeArray<Vector2>, NativeList<int>)
Plants hole seeds using either the autoHolesAndBoundary
or restoreBoundary
option,
or by using the provided holeSeeds
buffer within the triangulation data in output
.
Declaration
public static void PlantHoleSeeds(this UnsafeTriangulator<Vector2> @this, NativeOutputData<Vector2> output, Allocator allocator, bool autoHolesAndBoundary = false, bool restoreBoundary = false, NativeArray<Vector2> holeSeeds = default, NativeList<int> mapping = default)
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. |
bool | autoHolesAndBoundary | If set to true, holes and boundaries will be created automatically depending on the provided constraints in |
bool | restoreBoundary | If true the mesh boundary is restored using the provided constraints in |
NativeArray<Vector2> | holeSeeds | Optional buffer containing seeds for holes. |
NativeList<int> | mapping | Optional buffer that can be provided for the extension to construct a mapping from the initial triangles (t1) to the triangles after planting seeds (t2). The condition t1[3i + k] == t2[mapping[3i + k]] (for k ∈ {0, 1, 2}) should hold for triangles that still exist in t2. If mapping[i] == -1, then the corresponding triangle i no longer exists in t2. |
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.
PlantHoleSeeds(UnsafeTriangulator<Vector2>, NativeInputData<Vector2>, NativeOutputData<Vector2>, Args, Allocator)
Declaration
[Obsolete("Use PlantHoleSeeds overload without args and input parameters.")]
public static void PlantHoleSeeds(this UnsafeTriangulator<Vector2> @this, NativeInputData<Vector2> input, NativeOutputData<Vector2> output, Args args, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<Vector2> | this | |
NativeInputData<Vector2> | input | |
NativeOutputData<Vector2> | output | |
Args | args | |
Allocator | allocator |
PlantHoleSeeds(UnsafeTriangulator<double2>, NativeOutputData<double2>, Allocator, bool, bool, NativeArray<double2>, NativeList<int>)
Plants hole seeds using either the autoHolesAndBoundary
or restoreBoundary
option,
or by using the provided holeSeeds
buffer within the triangulation data in output
.
Declaration
public static void PlantHoleSeeds(this UnsafeTriangulator<double2> @this, NativeOutputData<double2> output, Allocator allocator, bool autoHolesAndBoundary = false, bool restoreBoundary = false, NativeArray<double2> holeSeeds = default, NativeList<int> mapping = default)
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. |
bool | autoHolesAndBoundary | If set to true, holes and boundaries will be created automatically depending on the provided constraints in |
bool | restoreBoundary | If true the mesh boundary is restored using the provided constraints in |
NativeArray<double2> | holeSeeds | Optional buffer containing seeds for holes. |
NativeList<int> | mapping | Optional buffer that can be provided for the extension to construct a mapping from the initial triangles (t1) to the triangles after planting seeds (t2). The condition t1[3i + k] == t2[mapping[3i + k]] (for k ∈ {0, 1, 2}) should hold for triangles that still exist in t2. If mapping[i] == -1, then the corresponding triangle i no longer exists in t2. |
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.
PlantHoleSeeds(UnsafeTriangulator<double2>, NativeInputData<double2>, NativeOutputData<double2>, Args, Allocator)
Declaration
[Obsolete("Use PlantHoleSeeds overload without args and input parameters.")]
public static void PlantHoleSeeds(this UnsafeTriangulator<double2> @this, NativeInputData<double2> input, NativeOutputData<double2> output, Args args, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<double2> | this | |
NativeInputData<double2> | input | |
NativeOutputData<double2> | output | |
Args | args | |
Allocator | allocator |
PlantHoleSeeds(UnsafeTriangulator<int2>, NativeOutputData<int2>, Allocator, bool, bool, NativeArray<int2>, NativeList<int>)
Plants hole seeds using either the autoHolesAndBoundary
or restoreBoundary
option,
or by using the provided holeSeeds
buffer within the triangulation data in output
.
Declaration
public static void PlantHoleSeeds(this UnsafeTriangulator<int2> @this, NativeOutputData<int2> output, Allocator allocator, bool autoHolesAndBoundary = false, bool restoreBoundary = false, NativeArray<int2> holeSeeds = default, NativeList<int> mapping = default)
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. |
bool | autoHolesAndBoundary | If set to true, holes and boundaries will be created automatically depending on the provided constraints in |
bool | restoreBoundary | If true the mesh boundary is restored using the provided constraints in |
NativeArray<int2> | holeSeeds | Optional buffer containing seeds for holes. |
NativeList<int> | mapping | Optional buffer that can be provided for the extension to construct a mapping from the initial triangles (t1) to the triangles after planting seeds (t2). The condition t1[3i + k] == t2[mapping[3i + k]] (for k ∈ {0, 1, 2}) should hold for triangles that still exist in t2. If mapping[i] == -1, then the corresponding triangle i no longer exists in t2. |
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.
PlantHoleSeeds(UnsafeTriangulator<int2>, NativeInputData<int2>, NativeOutputData<int2>, Args, Allocator)
Declaration
[Obsolete("Use PlantHoleSeeds overload without args and input parameters.")]
public static void PlantHoleSeeds(this UnsafeTriangulator<int2> @this, NativeInputData<int2> input, NativeOutputData<int2> output, Args args, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<int2> | this | |
NativeInputData<int2> | input | |
NativeOutputData<int2> | output | |
Args | args | |
Allocator | allocator |
PlantHoleSeeds(UnsafeTriangulator<fp2>, NativeOutputData<fp2>, Allocator, bool, bool, NativeArray<fp2>, NativeList<int>)
Plants hole seeds using either the autoHolesAndBoundary
or restoreBoundary
option,
or by using the provided holeSeeds
buffer within the triangulation data in output
.
Declaration
public static void PlantHoleSeeds(this UnsafeTriangulator<fp2> @this, NativeOutputData<fp2> output, Allocator allocator, bool autoHolesAndBoundary = false, bool restoreBoundary = false, NativeArray<fp2> holeSeeds = default, NativeList<int> mapping = default)
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. |
bool | autoHolesAndBoundary | If set to true, holes and boundaries will be created automatically depending on the provided constraints in |
bool | restoreBoundary | If true the mesh boundary is restored using the provided constraints in |
NativeArray<fp2> | holeSeeds | Optional buffer containing seeds for holes. |
NativeList<int> | mapping | Optional buffer that can be provided for the extension to construct a mapping from the initial triangles (t1) to the triangles after planting seeds (t2). The condition t1[3i + k] == t2[mapping[3i + k]] (for k ∈ {0, 1, 2}) should hold for triangles that still exist in t2. If mapping[i] == -1, then the corresponding triangle i no longer exists in t2. |
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.
PlantHoleSeeds(UnsafeTriangulator<fp2>, NativeInputData<fp2>, NativeOutputData<fp2>, Args, Allocator)
Declaration
[Obsolete("Use PlantHoleSeeds overload without args and input parameters.")]
public static void PlantHoleSeeds(this UnsafeTriangulator<fp2> @this, NativeInputData<fp2> input, NativeOutputData<fp2> output, Args args, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<fp2> | this | |
NativeInputData<fp2> | input | |
NativeOutputData<fp2> | output | |
Args | args | |
Allocator | allocator |