Navigation
API > API/Runtime > API/Runtime/MeshConversion
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; };
| Name | TToDynamicMeshBase |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshConversion/Public/ToDynamicMesh.h |
| Include Path | #include "ToDynamicMesh.h" |
Syntax
template<typename SrcMeshType>
class TToDynamicMeshBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TToDynamicMeshBase() |
ToDynamicMesh.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| SrcTriIDType | typename SrcMeshType::TriIDType | ToDynamicMesh.h | |
| SrcVertIDType | typename SrcMeshType::VertIDType | ToDynamicMesh.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Time_AfterTriangles | FDateTime | ToDynamicMesh.h | ||
| Time_AfterVertices | FDateTime | ToDynamicMesh.h | ||
| ToSrcTriIDMap | TArray< SrcTriIDType > | ToDynamicMesh.h | ||
| ToSrcVertIDMap | TArray< SrcVertIDType > | Mapping data captured by conversion. | ToDynamicMesh.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Convert
(
FDynamicMesh3& MeshOut, |
Produces a DynamicMesh3 w/o attributes from the MeshIn. | ToDynamicMesh.h |