Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/SelectiveTessellate.h |
| Include | #include "Operations/SelectiveTessellate.h" |
Syntax
class FSelectiveTessellate
Remarks
Given an input mesh and a tessellation pattern, this operator generates a new tessellated mesh where the triangles affected are subtriangulated according to the rules specified by the pattern. Per-vertex normals, UVs, colors, and extended per-vertex attributes are linearly interpolated to the new vertices. Per-triangle group identifiers/materials and extended triangle attributes for the new triangles are inherited from the corresponding input mesh triangles they replaced.
Currently does not support interpolation of the GenericAttributes besides Skin Weights.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bInPlace | If true, the mesh to tessellate is contained in the ResultMesh and will be overwritten with the tessellation result. | |
| bool | bUseParallel | Should tessellation be multi-threaded. | |
| const FDynamicMesh3 * | Mesh | Points to either the input mesh to be used to generate the new tessellated mesh or will point to a copy of the mesh we are tessellating inplace. | |
| FTessellationPattern * | Pattern | Tessellation pattern determines how we tessellate edges and triangles. | |
| FProgressCancel * | Progress | Inputs Set this to be able to cancel running operation. |
currently not implemented |
| FDynamicMesh3 * | ResultMesh | Input/OutputThe tessellated mesh. | |
| FTessellationInformation | TessInfo |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSelectiveTessellate
(
FDynamicMesh3* OutMesh |
Tessellate the mesh inplace. | ||
FSelectiveTessellate
(
const FDynamicMesh3* Mesh, |
Tessellate the mesh and write the result into another mesh. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Cancelled () |
||
| bool | Compute () |
Generate tessellated geometry. | |
| TUniquePtr< FTessellationPattern > | CreateConcentricRingsPatternFromMaterial
(
const FDynamicMesh3* InMesh, |
Tessellate only triangles that belong to a given material (FDynamicMeshMaterialAttribute). | |
| TUniquePtr< FTessellationPattern > | CreateConcentricRingsPatternFromPolyGroup
(
const FDynamicMesh3* InMesh, |
Tessellate only triangles that belong to a given polygroup id within the polygroup layer attribute (FDynamicMeshPolygroupAttribute) specified by its name. | |
| TUniquePtr< FTessellationPattern > | CreateConcentricRingsPatternFromTriangleGroup
(
const FDynamicMesh3* InMesh, |
Tessellate only triangles that belong to a given triangle group id. | |
| TUniquePtr< FTessellationPattern > | CreateConcentricRingsTessellationPattern
(
const FDynamicMesh3* InMesh, |
Tessellate the whole mesh such that all the edge and inner tessellation levels are equal to InTessellationLevel. | |
| TUniquePtr< FTessellationPattern > | CreateConcentricRingsTessellationPattern
(
const TFunctionRef< int(const int EdgeID)> InEdgeFunc, |
InEdgeFunc and InTriFunc functions will be evaluated on all edges and triangles respectively to determine their desired tessellation levels. | |
| TUniquePtr< FTessellationPattern > | CreateConcentricRingsTessellationPattern
(
const FDynamicMesh3* InMesh, |
Helper methods for setting up built-in tessellation patterns. | |
| TUniquePtr< FTessellationPattern > | CreateConcentricRingsTessellationPattern
(
const FDynamicMesh3* InMesh, |
Tessellate only selected triangles such that the edge and inner tessellation levels of those triangles are set to InTessellationLevel. | |
| TUniquePtr< FTessellationPattern > | CreateInnerUnifromTessellationPattern
(
const FDynamicMesh3* InMesh, |
Pattern where the inner area is tessellated using the uniform loop style subdivision. | |
| TUniquePtr< FTessellationPattern > | CreateUniformTessellationPattern
(
const FDynamicMesh3* InMesh, |
Pattern where the whole triangle is tessellated using the loop style subdivision. | |
| void | SetPattern
(
FTessellationPattern* InPattern |
||
| EOperationValidationResult | Validate () |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FTessellationInformation | Output Stores any additional tessellation information that was requested by the caller. |