FInsetMeshRegion

[FInsetMeshRegion](API\Plugins\DynamicMesh\Operations\FInsetMeshRegion) implements local inset of a mesh region.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

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

Include

#include "Operations/InsetMeshRegion.h"

Syntax

class FInsetMeshRegion

Remarks

FInsetMeshRegion implements local inset of a mesh region. The selected triangles are separated and then stitched back together, creating an new strip of triangles around their border (s). The boundary loop vertices are inset by creating an offset line for each boundary loop edge, and then finding closest-points between the sequential edge pairs.

Complex input regions are handled, eg it can be multiple disconnected components, donut-shaped, etc

Each quad of the border loop is assigned it's own normal and UVs (ie each is a separate UV-island)

Variables

Name Description

Public variable

TArray< int32 >

 

AllModifiedTriangles

List of all triangles created/modified by this operation

Public variable

float

 

AreaCorrection

Linear attenuation of area correction factor, valid range [0,1], 0 means ignore area correction entirely

Public variable

bool

 

bReproject

Reproject positions onto input surface

Public variable

bool

 

bSolveRegionInteriors

Update positions of any non-boundary vertices in inset regions (via laplacian solve)

Public variable

TUniquePtr< FDy...

 

ChangeTracker

If set, change tracker will be updated based on edit

Public variable

double

 

InsetDistance

Inset by this distance

Public variable

TArray< FInsetI...

 

InsetRegions

List of Inset regions/components

Public variable

FDynamicMesh3 &...

 

Mesh

InputsThe mesh that we are modifying

Public variable

FMeshProjection...

 

ProjectionTarget

Projection target

Public variable

float

 

Softness

Determines how strongly laplacian solve constraints are enforced.

Public variable

TArray< int32 >

 

Triangles

The triangle region we are modifying

Public variable

float

 

UVScaleFactor

Quads on the stitch loop are planar-projected and scaled by this amount

Constructors

Name Description

Public function

FInsetMeshRegion

(
    FDynamicMesh3* mesh
)

Destructors

Name Description

Public function Virtual

~FInsetMeshRegion()

Functions

Name Description

Public function Virtual

bool

 

Apply()

Apply the Inset operation to the input mesh.

Protected function Virtual

bool

 

ApplyInset

(
    FInsetInfo& Region,
    FMeshNormals* UseNormals
)

Public function Virtual

EOperationVa...

 

Validate()

Classes

Name

Description

Public struct

FInsetInfo

Outputs Inset information for a single connected component

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