Navigation
API > API/Plugins > API/Plugins/DynamicMesh
This class automatically extracts a submesh from a mesh, and can re-insert it after you have edited it, as long as you have not messed up the boundary
[TODO] Should this share any code w/ RegionRemesher? [TODO] ReinsertSubToBaseMapT is not returned by the FDynamicMeshEditor.ReinsertSubmesh, instead we are trying to guess it here, by making some assumptions about what happens. It works for now, but it would better if FDynamicMeshEditor returned this information.
| Name | FMeshRegionOperator |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshRegionOperator.h |
| Include Path | #include "Operations/MeshRegionOperator.h" |
Syntax
class FMeshRegionOperator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshRegionOperator
(
FDynamicMesh3* Base, |
Operations/MeshRegionOperator.h | ||
FMeshRegionOperator
(
FDynamicMesh3* Base, |
Operations/MeshRegionOperator.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseMesh | FDynamicMesh3 * | Operations/MeshRegionOperator.h | ||
| CurrentBaseTris | TArray< int > | IDs of triangles in the base mesh that correspond to the submesh at time of last Compute or BackPropagate. | Operations/MeshRegionOperator.h | |
| Region | FDynamicSubmesh3 | Operations/MeshRegionOperator.h | ||
| ReinsertDuplicateTriBehavior | FDynamicMeshEditor::EDuplicateTriBehavior | Handle a tricky problem...see comments for EDuplicateTriBehavior enum | Operations/MeshRegionOperator.h | |
| ReinsertSubToBaseMapT | FOptionallySparseIndexMap | Note computation of this is kind of a hack right now; see TODO in class comment above. | Operations/MeshRegionOperator.h | |
| ReinsertSubToBaseMapV | FOptionallySparseIndexMap | This is only valid after BackPropagate() call!! maps submeshverts to base mesh | Operations/MeshRegionOperator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool BackPropropagate
(
bool bAllowSubmeshRepairs |
Remove the original submesh region and merge in the remeshed version. | Operations/MeshRegionOperator.h | |
bool BackPropropagateVertices
(
bool bRecomputeBoundaryNormals |
Transfer vertex positions in submesh back to base mesh; for use when the vertices in submesh still directly correspond back | Operations/MeshRegionOperator.h | |
TSet< int > CurrentBaseInteriorVertices() |
Operations/MeshRegionOperator.h | ||
const TArray< int > & CurrentBaseTriangles() |
Operations/MeshRegionOperator.h | ||
void RepairPossibleNonManifoldEdges () |
After remeshing we may create an internal edge between two boundary vertices [a,b]. | Operations/MeshRegionOperator.h | |
void SetSubmeshGroupID
(
int GID |
Operations/MeshRegionOperator.h |