FDynamicMeshEditor::ReinsertSubmesh

Update a Base Mesh from a Submesh; See [FMeshRegionOperator::BackPropropagate](API\Plugins\DynamicMesh\Operations\FMeshRegionOperator\BackPropropagate) for a usage example.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/DynamicMeshEditor.h

Include

#include "DynamicMeshEditor.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/DynamicMeshEditor.cpp

Syntax

bool ReinsertSubmesh
(
    const FDynamicSubmesh3 & Submesh,
    FOptionallySparseIndexMap & SubToNewV,
    TArray< int > * NewTris,
    EDuplicateTriBehavior DuplicateBehavior
)

Remarks

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.

Returns

true if submesh successfully inserted, false if any triangles failed (which happens if triangle would result in non-manifold mesh)

Parameters

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss