Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/ExtrudeMesh.h |
| Include | #include "Operations/ExtrudeMesh.h" |
Syntax
class FExtrudeMesh
Remarks
Note: FExtrudeMesh might someday be removed. Consider using FOffsetMeshRegion instead, which can extrude all or part of a mesh.
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
| Type | Name | Description | |
|---|---|---|---|
| bool | bSkipClosedComponents | If true, skip closed components | |
| double | DefaultExtrudeDistance | If no Extrude function is set, we will displace by DefaultExtrudeDistance*Normal | |
| TFunction< FVector3d(const FVector3d &, const FVector3f &, int)> | ExtrudedPositionFunc | This function is called to generate the offset vertex position. | |
| TArray< FExtrusionInfo > | Extrusions | List of extrusion regions, one per connected component of input | |
| 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 | |
| FDynamicMesh3 * | Mesh | InputsThe mesh that we are modifying | |
| float | UVScaleFactor | Quads on the stitch loop are planar-projected and scaled by this amount |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FExtrudeMesh
(
FDynamicMesh3* mesh |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Apply () |
Apply the Extrude operation to the input mesh. | |
| bool | ApplyExtrude
(
FExtrusionInfo& Region, |
||
| EOperationValidationResult | Validate () |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FExtrusionInfo | Outputs FExtrusionInfo stores info about extrusion for a single mesh connected component. |