UMeshSpaceDeformerTool

Applies non-linear deformations to a mesh

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MeshModelingToolsExp

Header

/Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/MeshSpaceDeformerTool.h

Include

#include "MeshSpaceDeformerTool.h"

Syntax

UCLASS()
class UMeshSpaceDeformerTool : public USingleSelectionMeshEditingTool

Remarks

Applies non-linear deformations to a mesh

Variables

Name Description

Protected variable UProperty

TObjectPtr< UGi...

 

DownIntervalSource

Protected variable UProperty

TObjectPtr< UDr...

 

DragAlignmentMechanic

Protected variable UProperty

TObjectPtr< UGi...

 

ForwardIntervalSource

Protected variable

UE::Geometry::F...

 

GizmoFrame

Protected variable UProperty

TObjectPtr< UIn...

 

IntervalGizmo

Protected variable

FVector3d

 

MeshCenter

Protected variable

double

 

ModifierGizmoLength

The length of the third interval gizmo (which sets the intensity of the deformation) when the modifier is set to some reasonable maximum.

Protected variable

TSharedPtr< UE:...

 

OriginalDynamicMesh

Protected variable UProperty

TObjectPtr< UPr...

 

OriginalMeshPreview

Protected variable

EMeshSpaceDefor...

 

PendingAction

Button click support.

Protected variable UProperty

TObjectPtr< UMe...

 

Preview

Protected variable

TPimplPtr< FSel...

 

SetPointInWorldConnector

Protected variable UProperty

TObjectPtr< UMe...

 

Settings

Protected variable UProperty

TObjectPtr< UGi...

 

StateTarget

Protected variable UProperty

TObjectPtr< UMe...

 

ToolActions

Protected variable UProperty

TObjectPtr< UCo...

 

TransformGizmo

Protected variable UProperty

TObjectPtr< UTr...

 

TransformProxy

Protected variable UProperty

TObjectPtr< UGi...

 

UpIntervalSource

Interval Parameter sources that reflect UI settings.

Protected variable

friend

 

USpaceDeformerOperatorFactory

Protected variable

TArray< FVector...

 

VisualizationPoints

Protected variable

FToolDataVisual...

 

VisualizationRenderer

Constructors

Name Description

Public function

UMeshSpaceDeformerTool()

Functions

Name Description

Protected function

void

 

ApplyAction

(
    EMeshSpaceDeformerToolAction Action
)

Apply clicked action.

Protected function

void

 

ApplyModifierGizmoValue

(
    double Value
)

Protected function Const

double

 

GetModifierGizmoValue()

These two functions translate to and from the modifier gizmo length to the relevant operator parameters.

Public function

void

 

RequestAction

(
    EMeshSpaceDeformerToolAction Action...
)

Protected function

void

 

SetGizmoFrameFromWorldPos

(
    const FVector& Position,
    const FVector& Normal,
    bool bAlignNormal
)

Protected function

void

 

TransformProxyChanged

(
    UTransformProxy* Proxy,
    FTransform Transform
)

Public function Const

void

 

UpdateOpParameters

Sync the parameters owned by the MeshSpaceDeformerOp

Protected function

void

 

UpdatePreview()

Overridden from UInteractiveTool

Name Description

Public function Virtual Const

bool

 

CanAccept()

Public function Virtual Const

bool

 

HasAccept()

Public function Virtual Const

bool

 

HasCancel()

Public function Virtual

void

 

OnPropertyModified

(
    UObject* PropertySet,
    FProperty* Property
)

Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes

Public function Virtual

void

 

OnTick

(
    float DeltaTime
)

Action support/system

Public function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Allow the Tool to do any custom drawing (ie via PDI/RHI)

Public function Virtual

void

 

Setup()

Called by ToolManager to initialize the Tool after ToolBuilder::BuildTool() has been called

Public function Virtual

void

 

Shutdown

(
    EToolShutdownType ShutdownType
)

Called by ToolManager to shut down the Tool