Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/UPreviewMesh
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/PreviewMesh.h |
| Include | #include "PreviewMesh.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/PreviewMesh.cpp |
void DeferredEditMesh
&40;
TFunctionRef< void(FDynamicMesh3 &)> EditFunc,
bool bRebuildSpatial
&41;
Remarks
Apply EditFunc to the internal mesh, and update spatial data structure if requested, but do not update/rebuild rendering data structures. NotifyDeferredEditOcurred() must be called to complete a deferred edit, this will update the rendering mesh. DeferredEditMesh can be called multiple times before NotifyDeferredEditCompleted() is called.
Parameters
| Name | Description |
|---|---|
| EditFunc | function that is applied to the internal mesh |
| bRebuildSpatial | if true, and internal spatial data structure is enabled, rebuild it for updated mesh |