Navigation
API > API/Runtime > API/Runtime/GeometryCore
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicSubmesh3.h |
| Include | #include "DynamicSubmesh3.h" |
Syntax
struct FDynamicSubmesh3
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< int > | BaseBorderE | ||
| TSet< int > | BaseBorderV | ||
| TSet< int > | BaseBoundaryE | ||
| const FDynamicMesh3 * | BaseMesh | ||
| bool | bComputeTriMaps | Whether to compute triangle maps (adds additional cost). True by default. | |
| FMeshIndexMappings | Mappings | TODO: this is a fully generic mapping backed by TMaps both ways we could instead back the reverse mapping by a TArray since it's dense for submeshes | |
| FDynamicMesh3 | Submesh |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor | |||
FDynamicSubmesh3
(
const FDynamicMesh3* BaseMesh |
Base mesh-only constructor; does not build submesh | ||
FDynamicSubmesh3
(
const FDynamicMesh3* BaseMesh, |
Constructor sets the base mesh and computes the submesh |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Compute
(
const TArrayView< const int >& SubTriangles, |
Computes the Submesh object, index mappings corresponding sub to base mesh, and boundary between sub and base mesh | |
| void | Compute
(
FDynamicMesh3* Base, |
Computes submesh object, setting a new BaseMesh first | |
| void | ComputeBoundaryInfo
(
const TArrayView< const int >& SubTriangles |
Compute boundary vertices and edges between the SubTriangles and the rest of the mesh Called by Compute after the Submesh is computed. | |
| const TSet< int > | |||
| const TSet< int > | |||
| const TSet< int > | |||
| const FDynamicMesh3 * | GetBaseMesh () |
Const accessor for base mesh | |
| const FDynamicMesh3 & | GetSubmesh () |
Const accessor for submesh | |
| FDynamicMesh3 & | GetSubmesh () |
Accessor for submesh | |
| bool | InBaseBorderEdges
(
int BaseEID |
||
| bool | InBaseBorderVertices
(
int BaseVID |
||
| bool | InBaseBoundaryEdges
(
int BaseEID |
||
| void | MapEdgesToSubmesh
(
TArrayView< int >& Edges |
||
| int | MapEdgeToBaseMesh
(
int SubEID |
||
| int | MapEdgeToSubmesh
(
int BaseEID |
||
| void | MapGroupsToSubmesh
(
TArrayView< int32 > GroupIDs |
||
| int | MapGroupToBaseMesh
(
int SubGID |
||
| int | MapGroupToSubmesh
(
int BaseGID |
||
| void | MapTrianglesToSubmesh
(
TArrayView< int >& Triangles |
||
| int | MapTriangleToBaseMesh
(
int SubTID |
||
| int | MapTriangleToSubmesh
(
int BaseTID |
||
| int | MapVertexToBaseMesh
(
int SubVID |
||
| int | MapVertexToSubmesh
(
int BaseVID |
||
| FIndex2i | MapVerticesToBaseMesh
(
FIndex2i VIDs |
||
| FIndex2i | MapVerticesToSubmesh
(
FIndex2i VIDs |
||
| void | MapVerticesToSubmesh
(
TArrayView< int >& Vertices |