Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Polygroups
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Polygroups/PolygroupSet.h |
| Include | #include "Polygroups/PolygroupSet.h" |
Syntax
struct FPolygroupSet
Remarks
Polygroup sets can be stored in multiple places. The default location is in the per-triangle group integer stored directly on a FDynamicMesh3. Additional layers may be stored in the FDynamicMeshAttributeSet. Future iterations could store packed polygroups in other places, store them in separate arrays, and so on. FPolygroupSet can be used to abstract these different cases, by providing a standard Polygroup Get/Set API.
To support unique Polygroup ID allocation, FPolygroupSet calculates the maximum GroupID on creation, and updates this maximum across SetGroup() calls. AllocateNewGroupID() can be used to provide new unused GroupIDs. For consistency with FDynamicMesh3, MaxGroupID is set such that all GroupIDs are less than MaxGroupID
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | GroupLayerIndex | ||
| int32 | MaxGroupID | ||
| const FDynamicMesh3 * | Mesh | ||
| const FDynamicMeshPolygroupAttribute * | PolygroupAttrib |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPolygroupSet
(
const FDynamicMesh3* MeshIn |
Initialize a PolygroupSet for the given Mesh, and standard triangle group layer | ||
FPolygroupSet
(
const FPolygroupSet* CopyIn |
Initialize a PolygroupSet by copying an existing PolygroupSet | ||
FPolygroupSet
(
const FDynamicMesh3* MeshIn, |
Initialize a PolygroupSet for the given Mesh, and standard triangle group layer | ||
FPolygroupSet
(
const FDynamicMesh3* MeshIn, |
Initialize a PolygroupSet for given Mesh and specific Polygroup attribute layer | ||
FPolygroupSet
(
const FDynamicMesh3* MeshIn, |
Initialize a PolygroupSet for given Mesh and specific Polygroup attribute layer, found by index. | ||
FPolygroupSet
(
const FDynamicMesh3* MeshIn, |
Initialize a PolygroupSet for given Mesh and specific Polygroup attribute layer, found by name. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Allocate a new unused PolygroupID by incrementing the MaxGroupID member | ||
| int32 | GetGroup
(
int32 TriangleID |
||
| const FDynamicMesh3 * | GetMesh () |
||
| const FDynamicMeshPolygroupAttribute * | GetPolygroup () |
||
| int32 | |||
| int32 | GetTriangleGroup
(
int32 TriangleID |
||
| void | Calculate the current maximum PolygroupID used in the active set and store in MaxGroupID member | ||
| void | SetGroup
(
int32 TriangleID, |
Set the PolygroupID for a TriangleID |