Method DynamicSplitHalfedge
DynamicSplitHalfedge(UnsafeTriangulator, OutputData<double2>, int, double, Allocator)
Splits the halfedge specified by he
by inserting a point at a position determined by linear interpolation.
The position is interpolated between the start and end points of the halfedge in the triangulation output
using alpha
as the interpolation parameter.
This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained,
the two resulting sub-segments will also be marked as constrained.
Declaration
public static void DynamicSplitHalfedge(this UnsafeTriangulator @this, OutputData<double2> output, int he, double alpha, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator | this | |
OutputData<double2> | output | |
int | he | The index of the halfedge to split. |
double | alpha | The interpolation parameter for positioning the new point between the start and end points of the halfedge,
where |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
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.
DynamicSplitHalfedge(UnsafeTriangulator<float2>, OutputData<float2>, int, float, Allocator)
Splits the halfedge specified by he
by inserting a point at a position determined by linear interpolation.
The position is interpolated between the start and end points of the halfedge in the triangulation output
using alpha
as the interpolation parameter.
This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained,
the two resulting sub-segments will also be marked as constrained.
Declaration
public static void DynamicSplitHalfedge(this UnsafeTriangulator<float2> @this, OutputData<float2> output, int he, float alpha, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<float2> | this | |
OutputData<float2> | output | |
int | he | The index of the halfedge to split. |
float | alpha | The interpolation parameter for positioning the new point between the start and end points of the halfedge,
where |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
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.
DynamicSplitHalfedge(UnsafeTriangulator<Vector2>, OutputData<Vector2>, int, float, Allocator)
Splits the halfedge specified by he
by inserting a point at a position determined by linear interpolation.
The position is interpolated between the start and end points of the halfedge in the triangulation output
using alpha
as the interpolation parameter.
This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained,
the two resulting sub-segments will also be marked as constrained.
Declaration
public static void DynamicSplitHalfedge(this UnsafeTriangulator<Vector2> @this, OutputData<Vector2> output, int he, float alpha, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<Vector2> | this | |
OutputData<Vector2> | output | |
int | he | The index of the halfedge to split. |
float | alpha | The interpolation parameter for positioning the new point between the start and end points of the halfedge,
where |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
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.
DynamicSplitHalfedge(UnsafeTriangulator<double2>, OutputData<double2>, int, double, Allocator)
Splits the halfedge specified by he
by inserting a point at a position determined by linear interpolation.
The position is interpolated between the start and end points of the halfedge in the triangulation output
using alpha
as the interpolation parameter.
This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained,
the two resulting sub-segments will also be marked as constrained.
Declaration
public static void DynamicSplitHalfedge(this UnsafeTriangulator<double2> @this, OutputData<double2> output, int he, double alpha, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<double2> | this | |
OutputData<double2> | output | |
int | he | The index of the halfedge to split. |
double | alpha | The interpolation parameter for positioning the new point between the start and end points of the halfedge,
where |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
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.
DynamicSplitHalfedge(UnsafeTriangulator<fp2>, OutputData<fp2>, int, fp, Allocator)
Splits the halfedge specified by he
by inserting a point at a position determined by linear interpolation.
The position is interpolated between the start and end points of the halfedge in the triangulation output
using alpha
as the interpolation parameter.
This method preserves the "constrained" state of the halfedge, meaning that if the specified halfedge is constrained,
the two resulting sub-segments will also be marked as constrained.
Declaration
public static void DynamicSplitHalfedge(this UnsafeTriangulator<fp2> @this, OutputData<fp2> output, int he, fp alpha, Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
UnsafeTriangulator<fp2> | this | |
OutputData<fp2> | output | |
int | he | The index of the halfedge to split. |
fp | alpha | The interpolation parameter for positioning the new point between the start and end points of the halfedge,
where |
Allocator | allocator | The allocator to use. If called from a job, consider using Allocator.Temp. |
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.