Navigation
API > API/Runtime > API/Runtime/MeshConversion > API/Runtime/MeshConversion/FDynamicMeshToMeshDescription
Description
Update only attributes, assuming the mesh topology has not changed. Does not touch positions. NOTE: assumes the order of triangles in the MeshIn correspond to the ordering you'd get by iterating over triangles, on MeshOut This matches conversion currently used in MeshDescriptionToDynamicMesh.cpp, but if that changes we will need to change this function to match!
| Name | UpdateAttributes |
| Type | function |
| Header File | /Engine/Source/Runtime/MeshConversion/Public/DynamicMeshToMeshDescription.h |
| Include Path | #include "DynamicMeshToMeshDescription.h" |
| Source | /Engine/Source/Runtime/MeshConversion/Private/DynamicMeshToMeshDescription.cpp |
void UpdateAttributes
(
const FDynamicMesh3 * MeshIn,
FMeshDescription & MeshOut,
bool bUpdateNormals,
bool bUpdateTangents,
bool bUpdateUVs
)
Parameters
| Name | Remarks |
|---|---|
| bUpdateNormals | Specifies if the normals should be transfered from the MeshIn PrimaryNormal overlay if it exists |
| bUpdateTangents | Specifies if the tangent and bitangent sign should be populated from the MeshIn PrimaryTangents and PrimaryBiTangents. this requires the PrimaryNormals to exist as well. |
| bUpdateUVs | Specifices if the UV layers should be transfered from the MeshIn overlays. |