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 (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

FDynamicMesh3

 

InitialEditPatch

Protected variable

FDynamicMeshAAB ...

 

InitialEditPatchBVTree

Protected variable

TArray < FVector ...

 

InitialNormals

Protected variable

TArray < FVector ...

 

InitialPositions

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

 

UpdateInsetType

(
    double NewOffset
)

Public function

void

 

UpdateStaticType

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback