FMeshRegionOperator

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

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshRegionOperator.h

Include

#include "Operations/MeshRegionOperator.h"

Syntax

class FMeshRegionOperator

Remarks

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.

Variables

Name Description

Public variable

FDynamicMesh3 &...

 

BaseMesh

Public variable

TArray< int >

 

CurrentBaseTris

IDs of triangles in the base mesh that correspond to the submesh at time of last Compute or BackPropagate.

Public variable

FDynamicSubmesh...

 

Region

Public variable

FDynamicMeshEdi...

 

ReinsertDuplicateTriBehavior

Handle a tricky problem...see comments for EDuplicateTriBehavior enum

Public variable

FOptionallySpar...

 

ReinsertSubToBaseMapT

[RMS] computation of this is kind of a hack right now...

Public variable

FOptionallySpar...

 

ReinsertSubToBaseMapV

This is only valid after BackPropagate() call!! maps submeshverts to base mesh

Constructors

Name Description

Public function

FMeshRegionOperator

(
    FDynamicMesh3* Base,
    const TArrayView< const int >& Reg...
)

Public function

FMeshRegionOperator

(
    FDynamicMesh3* Base,
    const TArrayView< const int >& Reg...,
    TFunctionRef< void...
)

Functions

Name Description

Public function

bool

 

BackPropropagate

(
    bool bAllowSubmeshRepairs
)

Remove the original submesh region and merge in the remeshed version.

Public function

bool

 

BackPropropagateVertices

(
    bool bRecomputeBoundaryNormals
)

Transfer vertex positions in submesh back to base mesh; for use when the vertices in submesh still directly correspond back

Public function Const

TSet< int >

 

CurrentBaseInteriorVertices()

Public function Const

const TArray...

 

CurrentBaseTriangles()

Public function

void

 

RepairPossibleNonManifoldEdges()

After remeshing we may create an internal edge between two boundary vertices [a,b].

Public function

void

 

SetSubmeshGroupID

(
    int GID
)

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