FExtrudeMesh

[FExtrudeMesh](API\Plugins\DynamicMesh\Operations\FExtrudeMesh) implements a full-mesh extrusion of a mesh.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

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

Include

#include "Operations/ExtrudeMesh.h"

Syntax

class FExtrudeMesh

Remarks

FExtrudeMesh implements a full-mesh extrusion of a mesh. This happens in two stages: 1) all triangles of input mesh are duplicated and offset 2) base and offset border loops are stitched together with triangulated quads Step 2 does not occur if there are no boundary loops (ie for a closed input mesh)

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

double

 

DefaultExtrudeDistance

If no Extrude function is set, we will displace by DefaultExtrudeDistance*Normal

Public variable

TFunction< FVec...

 

ExtrudedPositionFunc

This function is called to generate the offset vertex position.

Public variable

TArray< FExtrus...

 

Extrusions

List of extrusion regions, one per connected component of input

Public variable

bool

 

IsPositiveOffset

If Extrusion is "negative" (ie negative distance, inset, etc) then this value must be set to false or the output will have incorrect winding orientation

Public variable

FDynamicMesh3 &...

 

Mesh

InputsThe mesh that 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

FExtrudeMesh

(
    FDynamicMesh3* mesh
)

Destructors

Name Description

Public function Virtual

~FExtrudeMesh()

Functions

Name Description

Public function Virtual

bool

 

Apply()

Apply the Extrude operation to the input mesh.

Protected function

bool

 

ApplyExtrude

(
    FExtrusionInfo& Region,
    FMeshNormals* UseNormals
)

Public function Virtual

EOperationVa...

 

Validate()

Classes

Name

Description

Public struct

FExtrusionInfo

Outputs FExtrusionInfo stores info about extrusion for a single mesh 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