UPolyEditPreviewMesh

[UPolyEditPreviewMesh](API\Plugins\ModelingComponents\Drawing\UPolyEditPreviewMesh) is a variant of [UPreviewMesh](API\Plugins\ModelingComponents\UPreviewMesh) intended for use as a 'live preview' of a mesh creation/editing operation.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/PolyEditPreviewMesh.h

Include

#include "Drawing/PolyEditPreviewMesh.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Transient)
class UPolyEditPreviewMesh : public UPreviewMesh

Remarks

UPolyEditPreviewMesh is a variant of UPreviewMesh intended for use as a 'live preview' of a mesh creation/editing operation. The class supports initializing the preview mesh in various ways, generally as a submesh of a base mesh.

Variables

Name Description

Protected variable

TUniquePtr< FDy...

 

ActiveSubmesh

Protected variable

bool

 

bHaveMeshTransform

Protected variable

TArray< int32 >

 

EditVertices

Protected variable

TMap< int32, in...

 

ExtrudeToInitialVerts

Protected variable

FDynamicMesh3

 

InitialEditPatch

Protected variable

FDynamicMeshAAB...

 

InitialEditPatchBVTree

Protected variable

TArray< FVector...

 

InitialNormals

Protected variable

TArray< FVector...

 

InitialPositions

Protected variable

TArray< FVector...

 

InitialTriNormals

Protected variable

FVector3d

 

InputDirection

Protected variable

FTransform3d

 

MeshTransform

Functions

Name Description

Public function Const

const FDynam...

 

GetInitialPatchMesh()

Public function

FDynamicMesh...

 

GetInitialPatchMeshSpatial()

Must be non-const because query functions are non-const

Public function

void

 

InitializeExtrudeType

(
    FDynamicMesh3&& BaseMesh,
    const FVector3d& TransformedOffset...,
    const FTransform3d* MeshTransf...,
    bool bDeleteExtrudeBaseFaces
)

Public function

void

 

InitializeExtrudeType

(
    const FDynamicMesh3* SourceMes...,
    const TArray< int32 >& Triangles,
    const FVector3d& TransformedOffset...,
    const FTransform3d* MeshTransf...,
    bool bDeleteExtrudeBaseFaces
)

"Extrude Type" duplicates the input faces, offsets them using FExtrudeMesh, and stitches them together

Public function

void

 

InitializeInsetType

(
    const FDynamicMesh3* SourceMes...,
    const TArray< int32 >& Triangles,
    const FTransform3d* MeshTransf...
)

"Inset Type" duplicates the input faces and insets them using FInsetMeshRegion

Public function

void

 

InitializeStaticType

(
    const FDynamicMesh3* SourceMes...,
    const TArray< int32 >& Triangles,
    const FTransform3d* MeshTransf...
)

"Static Type" is just a static mesh

Public function

void

 

MakeExtrudeTypeHitTargetMesh

(
    FDynamicMesh3& TargetMesh,
    bool bUseNormalDirection
)

Make a hit-target mesh that is an infinite extrusion along extrude direction.

Public function

void

 

MakeInsetTypeTargetMesh

(
    FDynamicMesh3& TargetMesh
)

Public function

void

 

MakeStaticTypeTargetMesh

(
    FDynamicMesh3& TargetMesh
)

Public function

void

 

UpdateExtrudeType

(
    double NewOffset,
    bool bUseNormalDirection
)

Update extrude-type preview mesh by moving existing offset vertices

Public function

void

 

UpdateExtrudeType

(
    TFunctionRef< void&)...,
    bool bFullRecalculate
)

Update extrude-type preview mesh using external function.

Public function

void

 

UpdateExtrudeType_FaceNormalAvg

(
    double NewOffset
)

Update extrude-type preview mesh by moving existing offset vertices along their connected triangle normals and then averaging positions

Public function

void

 

UpdateInsetType

(
    double NewOffset,
    bool bReproject,
    double Softness,
    double AreaScaleT,
    bool bBoundaryOnly
)

Public function

void

 

UpdateStaticType

(
    TFunctionRef< void&)...,
    bool bFullRecalculate
)

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