Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/DynamicMeshEditor.h |
Include |
#include "DynamicMeshEditor.h" |
Source |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/DynamicMeshEditor.cpp |
bool ReinsertSubmesh
(
const FDynamicSubmesh3 & Submesh,
FOptionallySparseIndexMap & SubToNewV,
TArray< int > * NewTris,
EDuplicateTriBehavior DuplicateBehavior
)
Update a Base Mesh from a Submesh; See FMeshRegionOperator::BackPropropagate for a usage example.
Assumes that Submesh has been modified, but boundary loop has been preserved, and that old submesh has already been removed from this mesh. Just appends new vertices and rewrites triangles.
true if submesh successfully inserted, false if any triangles failed (which happens if triangle would result in non-manifold mesh)
Parameter |
Description |
---|---|
Submesh |
The mesh to insert back into its BaseMesh. The original submesh triangles should have already been removed when this function is called |
SubToNewV |
Mapping from submesh to vertices in the updated base mesh |
NewTris |
If not null, will be filled with IDs of triangles added to the base mesh |
DuplicateBehavior |
Choice of what to do if inserting a triangle from the submesh would duplicate a triangle in the base mesh |