Navigation
API > API/Plugins > API/Plugins/CADLibrary
Macro data of MeshDescription. Needed to update a MeshDesction after a conversion of a DynamicMesh To a MeshDescription. Indeed, PolygonGroupId can be modify during the process of DynamicMesh and material slot names are not saved in a DynamicMesh. The only persistent data is the patchGroupId
This class save the PatchGroupToPolygonGroup map and the MaterialSlotNames of the MeshDescription before the conversion into a DynamicMesh This information allows to restor the material slot name used by each PolygonGroup
The call of UpdateMaterialSlotNames restor the information in the new or update MeshDescription
| Name | FMeshDescriptionDataCache |
| Type | class |
| Header File | /Engine/Plugins/Enterprise/DatasmithCADImporter/Source/CADLibrary/Public/CADMeshDescriptionHelper.h |
| Include Path | #include "CADMeshDescriptionHelper.h" |
Syntax
class FMeshDescriptionDataCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshDescriptionDataCache
(
FMeshDescription& Mesh |
CADMeshDescriptionHelper.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EmptyName | FName | CADMeshDescriptionHelper.h | ||
| MaterialSlotNames | TArray< FName > | The mapping between PolygonGroupId and SlotNames | CADMeshDescriptionHelper.h | |
| PatchGroupToPolygonGroup | TMap< int32, FPolygonGroupID > | The mapping between PatchId and PolygonGroupId | CADMeshDescriptionHelper.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void RestoreMaterialSlotNames
(
FMeshDescription& MeshDestination |
CADMeshDescriptionHelper.h |