Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Polygroups/PolygroupSet.h |
Include |
#include "Polygroups/PolygroupSet.h" |
struct FPolygroupSet
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
Name | Description | |
---|---|---|
|
FPolygroupSet ( |
Initialize a PolygroupSet for the given Mesh, and standard triangle group layer |
|
FPolygroupSet ( |
Initialize a PolygroupSet by copying an existing PolygroupSet |
|
FPolygroupSet ( |
Initialize a PolygroupSet for the given Mesh, and standard triangle group layer |
|
FPolygroupSet ( |
Initialize a PolygroupSet for given Mesh and specific Polygroup attribute layer |
|
FPolygroupSet ( |
Initialize a PolygroupSet for given Mesh and specific Polygroup attribute layer, found by index. |
|
FPolygroupSet ( |
Initialize a PolygroupSet for given Mesh and specific Polygroup attribute layer, found by name. |
Name | Description | ||
---|---|---|---|
|
AllocateNewGroupID() |
Allocate a new unused PolygroupID by incrementing the MaxGroupID member |
|
|
GetGroup ( |
||
|
const FDynam... |
GetMesh() |
|
|
const FDynam... |
GetPolygroup() |
|
|
GetPolygroupIndex() |
||
|
GetTriangleGroup ( |
||
|
RecalculateMaxGroupID() |
Calculate the current maximum PolygroupID used in the active set and store in MaxGroupID member |
|
|
SetGroup ( |
Set the PolygroupID for a TriangleID |