Method DynamicInsertPoint
DynamicInsertPoint(UnsafeTriangulator, OutputData<double2>, int, double3, Allocator)
Inserts a point into the given triangulation output
within the triangle at index tId
, using the specified barycentric coordinates bar
.
For faster triangle lookup when inserting a point at specific coordinates, it is recommended to use an acceleration structure (e.g., bounding volume tree, buckets, etc.).
Declaration
public static void DynamicInsertPoint(this UnsafeTriangulator @this, OutputData<double2> output, int tId, double3 bar, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator | this | |
OutputData<double2> | output | |
int | tId | The index of the triangle in which the point should be inserted. |
double3 | bar | The barycentric coordinates of the point to insert inside the triangle |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
Remarks
Note:
Only point insertion within the mesh bulk is supported.
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.
DynamicInsertPoint(UnsafeTriangulator<float2>, OutputData<float2>, int, float3, Allocator)
Inserts a point into the given triangulation output
within the triangle at index tId
, using the specified barycentric coordinates bar
.
For faster triangle lookup when inserting a point at specific coordinates, it is recommended to use an acceleration structure (e.g., bounding volume tree, buckets, etc.).
Declaration
public static void DynamicInsertPoint(this UnsafeTriangulator<float2> @this, OutputData<float2> output, int tId, float3 bar, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<float2> | this | |
OutputData<float2> | output | |
int | tId | The index of the triangle in which the point should be inserted. |
float3 | bar | The barycentric coordinates of the point to insert inside the triangle |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
Remarks
Note:
Only point insertion within the mesh bulk is supported.
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.
DynamicInsertPoint(UnsafeTriangulator<Vector2>, OutputData<Vector2>, int, Vector3, Allocator)
Inserts a point into the given triangulation output
within the triangle at index tId
, using the specified barycentric coordinates bar
.
For faster triangle lookup when inserting a point at specific coordinates, it is recommended to use an acceleration structure (e.g., bounding volume tree, buckets, etc.).
Declaration
public static void DynamicInsertPoint(this UnsafeTriangulator<Vector2> @this, OutputData<Vector2> output, int tId, Vector3 bar, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<Vector2> | this | |
OutputData<Vector2> | output | |
int | tId | The index of the triangle in which the point should be inserted. |
Vector3 | bar | The barycentric coordinates of the point to insert inside the triangle |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
Remarks
Note:
Only point insertion within the mesh bulk is supported.
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.
DynamicInsertPoint(UnsafeTriangulator<double2>, OutputData<double2>, int, double3, Allocator)
Inserts a point into the given triangulation output
within the triangle at index tId
, using the specified barycentric coordinates bar
.
For faster triangle lookup when inserting a point at specific coordinates, it is recommended to use an acceleration structure (e.g., bounding volume tree, buckets, etc.).
Declaration
public static void DynamicInsertPoint(this UnsafeTriangulator<double2> @this, OutputData<double2> output, int tId, double3 bar, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<double2> | this | |
OutputData<double2> | output | |
int | tId | The index of the triangle in which the point should be inserted. |
double3 | bar | The barycentric coordinates of the point to insert inside the triangle |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
Remarks
Note:
Only point insertion within the mesh bulk is supported.
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.
DynamicInsertPoint(UnsafeTriangulator<fp2>, OutputData<fp2>, int, fp3, Allocator)
Inserts a point into the given triangulation output
within the triangle at index tId
, using the specified barycentric coordinates bar
.
For faster triangle lookup when inserting a point at specific coordinates, it is recommended to use an acceleration structure (e.g., bounding volume tree, buckets, etc.).
Declaration
public static void DynamicInsertPoint(this UnsafeTriangulator<fp2> @this, OutputData<fp2> output, int tId, fp3 bar, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<fp2> | this | |
OutputData<fp2> | output | |
int | tId | The index of the triangle in which the point should be inserted. |
fp3 | bar | The barycentric coordinates of the point to insert inside the triangle |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
Remarks
Note:
Only point insertion within the mesh bulk is supported.
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.