UMeshSpaceDeformerTool

Applies non-linear deformations to a mesh

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/MeshModelingTools/Public/MeshSpaceDeformerTool.h

Include

#include "MeshSpaceDeformerTool.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UMeshSpaceDeformerTool : public UMeshSurfacePointTool

Remarks

Applies non-linear deformations to a mesh

Variables

Name Description

Protected variable

FVector3d

 

AABBHalfExtents

Protected variable

IToolsContextAs...

 

AssetAPI

Protected variable

bool

 

bHasBegin

Public variable UProperty Category, EditAnywhere

bool

 

bSnapToWorldGrid

Snap the deformer gizmo to the world grid

Protected variable UProperty

UGizmoLocalFloa...

 

DownIntervalSource

Protected variable UProperty

UGizmoLocalFloa...

 

ForwardIntervalSource

Protected variable UProperty

FVector

 

GizmoCenter

Offset to center of gizmo

Protected variable

FFrame3d

 

GizmoFrame

Protected variable UProperty

FQuat

 

GizmoOrientation

Gizmo Plane Orientation

Protected variable UProperty

UIntervalGizmo ...

 

IntervalGizmo

Public variable UProperty Category, EditAnywhere, Meta

float

 

LowerBoundsInterval

The upper bounds interval corresponds to the region of space which the selected operator will affect.

Public variable UProperty Category, EditAnywhere, Meta

float

 

ModifierPercent

As each operator has a range of values (i.e. curvature, angle of twist, scale), this represents the percentage passed to the operator as a parameter.

Protected variable

TSharedPtr< FDy...

 

OriginalDynamicMesh

Protected variable UProperty

UMeshOpPreviewW...

 

Preview

Public variable UProperty Category, EditAnywhere, Meta

ENonlinearOpera...

 

SelectedOperationType

Protected variable

TPimplPtr< FSel...

 

SetPointInWorldConnector

Protected variable UProperty

UGizmoTransform...

 

StateTarget

Protected variable

UWorld *

 

TargetWorld

Protected variable UProperty

UTransformGizmo...

 

TransformGizmo

Protected variable UProperty

UTransformProxy...

 

TransformProxy

Protected variable UProperty

UGizmoLocalFloa...

 

UpIntervalSource

Interval Parameter sources that reflect UI settings.

Public variable UProperty Category, EditAnywhere, Meta

float

 

UpperBoundsInterval

The upper bounds interval corresponds to the region of space which the selected operator will affect.

Constructors

Name Description

Public function

UMeshSpaceDeformerTool()

Functions

Name Description

Protected function Const

void

 

ComputeAABB

(
    const FDynamicMesh3& MeshIn,
    const FTransform& XFormIn,
    FVector& BBoxMin,
    FVector& BBoxMax
)

Compute the axis aligned abounding box for the source mesh

Public function Virtual

void

 

SetAssetAPI

(
    IToolsContextAssetAPI* AssetAP...
)

Protected function

void

 

SetGizmoPlaneFromWorldPos

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

Public function Virtual

void

 

SetWorld

(
    UWorld* World
)

Protected function

void

 

TransformProxyChanged

(
    UTransformProxy* Proxy,
    FTransform Transform
)

Public function Const

void

 

UpdateOpParameters

(
    FMeshSpaceDeformerOp& MeshSpaceDef...
)

Sync the parameters owned by the MeshSpaceDeformerOp

Overridden from UMeshSurfacePointTool

Name Description

Public function Virtual

bool

 

HitTest

(
    const FRay& Ray,
    FHitResult& OutHit
)

Disable UMeshSurfacePointTool hits as tool is not using that interaction (subclass should be changed)

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

Register InputBehaviors, etc

Public function Virtual

void

 

Shutdown

(
    EToolShutdownType ShutdownType
)

Called by ToolManager to shut down the Tool

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

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