FOffsetMeshRegion

[FOffsetMeshRegion](API\Plugins\DynamicMesh\Operations\FOffsetMeshRegion) implements local extrusion/offset of a mesh region.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

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

Include

#include "Operations/OffsetMeshRegion.h"

Syntax

class FOffsetMeshRegion

Remarks

FOffsetMeshRegion implements local extrusion/offset 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 offset region is then transformed using the OffsetPositionFunc.

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

TUniquePtr< FDy...

 

ChangeTracker

If set, change tracker will be updated based on edit

Public variable

double

 

DefaultOffsetDistance

If no Offset function is set, we will displace by DefaultOffsetDistance*Normal

Public variable

FDynamicMesh3 &...

 

Mesh

InputsThe mesh that we are modifying

Public variable

TFunction< FVec...

 

OffsetPositionFunc

This function is called to generate the offset vertex position.

Public variable

TArray< FOffset...

 

OffsetRegions

List of offset regions/components

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

FOffsetMeshRegion

(
    FDynamicMesh3* mesh
)

Destructors

Name Description

Public function Virtual

~FOffsetMeshRegion()

Functions

Name Description

Public function Virtual

bool

 

Apply()

Apply the Offset operation to the input mesh.

Protected function Virtual

bool

 

ApplyOffset

(
    FOffsetInfo& Region,
    FMeshNormals* UseNormals
)

Public function Virtual

EOperationVa...

 

Validate()

Classes

Name

Description

Public struct

FOffsetInfo

Outputs Offset 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