Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FTessellationPattern
Description
Tessellate the triangle patch by generating new vertices inside the triangle. Compute the barycentric coordinates of the new vertices and store them in the TriPatch.BaryCoord. Using the vertices generated in the edge patches and inside the triangle patch, generate new triangles and store the result in the TriPatch.Triangles.
| Name | TessellateTriPatch |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/SelectiveTessellate.h |
| Include Path | #include "Operations/SelectiveTessellate.h" |
void TessellateTriPatch
(
TrianglePatch & TriPatch
) const
Parameters
| Name | Remarks |
|---|---|
| TriPatch | Has all the fields set except the values in the TriPatch.BaryCoord and TriPatch.Triangles which should be set by this method. Both arrays are already sized correctly to be able to hold all the data needed as specified by the GetNumberOfNewVerticesForTrianglePatch() and GetNumberOfPatchTriangles(). |