Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/PNTriangles.h |
| Include | #include "Operations/PNTriangles.h" |
Syntax
class FPNTriangles
Remarks
FPNTriangles implements curved PN (Point-Normal) Triangles (Curved PN Triangles, Vlachos, 2001). Each PN triangle replaces one original flat triangle by a curved shape that is retriangulated into a number of small subtriangles. The geometry of a PN triangle is defined as one cubic Bezier patch using control points. The patch matches the point and normal information at the vertices of the original flat triangle.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bRecalculateNormals | If true and the mesh has the normal overlay then recalculate it. | |
| FDynamicMesh3 * | Mesh | Input & OutputThe mesh that we are modifying. | |
| FProgressCancel * | Progress | InputSet this to be able to cancel running operation. | |
| int32 | TessellationLevel | How many times we are recursively subdividing triangles (loop style subdivision). |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPNTriangles
(
FDynamicMesh3* Mesh |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Compute () |
Generate PN Triangles geometry and optionally compute quadratically varying normals. | |
| EOperationValidationResult | Validate () |