Navigation
API > API/Runtime > API/Runtime/MeshConversion
Inheritance Hierarchy
- TToDynamicMeshBase
- TToDynamicMesh
References
| Module | MeshConversion |
| Header | /Engine/Source/Runtime/MeshConversion/Public/ToDynamicMesh.h |
| Include | #include "ToDynamicMesh.h" |
Syntax
template<typename SrcMeshType>
class TToDynamicMeshBase
Remarks
Class used to convert a mesh without attributes (e.g. normals, uvs etc) to a FDynamicMesh3
The Source Mesh has to implement this interface
struct FSrcMeshInterface { // ID types: must be castable to int32 typedef SrcVertIDType VertIDType; typedef SrcTriIDType TriIDType;
// accounting. int32 NumTris() const; int32 NumVerts() const;
// "Vertex Buffer" info const Iterable_VertIDType& GetVertIDs() const; const FVector GetPosition(const VertIDType VtxID) const;
// "Index Buffer" info const Iterable_TriIDType& GetTriIDs() const // return false if this TriID is not contained in mesh. bool GetTri(const TriIDType TriID, VertIDType& VID0, VertIDType& VID1, VertIDType& VID2) const; };
Variables
| Type | Name | Description | |
|---|---|---|---|
| FDateTime | Time_AfterTriangles | ||
| FDateTime | Time_AfterVertices | ||
| TArray< SrcTriIDType > | ToSrcTriIDMap | ||
| TArray< SrcVertIDType > | ToSrcVertIDMap | Mapping data captured by conversion. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Convert
(
FDynamicMesh3& MeshOut, |
Produces a DynamicMesh3 w/o attributes from the MeshIn. |
Typedefs
| Name | Description |
|---|---|
| SrcTriIDType | |
| SrcVertIDType |