Navigation
API > API/Runtime > API/Runtime/MeshConversion
References
| Module | MeshConversion |
| Header | /Engine/Source/Runtime/MeshConversion/Public/DynamicMeshToMeshDescription.h |
| Include | #include "DynamicMeshToMeshDescription.h" |
Syntax
class FDynamicMeshToMeshDescription
Remarks
Convert FDynamicMesh3 to FMeshDescription
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bPrintDebugMessages | If true, will print some possibly-helpful debugging spew to output log | |
| FConversionToMeshDescriptionOptions | ConversionOptions | General settings for conversions to mesh description |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDynamicMeshToMeshDescription
(
FConversionToMeshDescriptionOptions ConversionOptions |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyVertexColorTransform
(
FVector4f& Color |
Applies an optional sRGB-to-Linear color transform on the input. | |
| void | Convert
(
const FDynamicMesh3* MeshIn, |
Default conversion of DynamicMesh to MeshDescription. | |
| void | Convert_NoAttributes
(
const FDynamicMesh3* MeshIn, |
Internal functions that you can also call directly Ignore any Attributes on input Mesh, calculate per-vertex normals and have MeshDescription compute tangents. | |
| void | Convert_NoSharedInstances
(
const FDynamicMesh3* MeshIn, |
Convert with no shared VertexInstances. | |
| void | Convert_SharedInstances
(
const FDynamicMesh3* MeshIn, |
Convert while minimizing VertexInstance count, IE new VertexInstances are only created if a unique UV or Normal is required. | |
| void | ConvertPolygroupLayers
(
const FDynamicMesh3* MeshIn, |
Transfer PolygroupLayers from DynamicMesh AttributeSet to MeshDescription. | |
| void | ConvertWeightLayers
(
const FDynamicMesh3* MeshIn, |
Transfer WeightLayers from DynamicMesh AttributeSet to MeshDescription. | |
| bool | HaveMatchingElementCounts
(
const FDynamicMesh3* DynamicMesh, |
Checks if element counts match. If false then Update can't be called you must call Convert | |
| bool | HaveMatchingElementCounts
(
const FDynamicMesh3* DynamicMesh, |
Checks if element counts match. | |
| void | Update
(
const FDynamicMesh3* MeshIn, |
Update existing MeshDescription based on DynamicMesh. | |
| void | UpdateAttributes
(
const FDynamicMesh3* MeshIn, |
Update only attributes, assuming the mesh topology has not changed. | |
| void | UpdateTangents
(
const FDynamicMesh3* MeshIn, |
Use the MeshIn Overlays to update the Tangent and BinormalSign attributes of the MeshDescription, assuming mesh topology has not changed. | |
| void | UpdateTangents
(
const FDynamicMesh3* MeshIn, |
Use the TMeshTangents to update the Tangent and BinormalSign attributes of the MeshDescription, assuming mesh topology has not changed. | |
| void | UpdateUsingConversionOptions
(
const FDynamicMesh3* MeshIn, |
Updates the given mesh description based conversion options provided in the constructor. | |
| void | UpdateVertexColors
(
const FDynamicMesh3* MeshIn, |
Update only vertex colors, assuming the mesh topology has not changed. |