UPlaneCutTool

Simple Mesh Plane Cutting Tool

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

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

Include

#include "PlaneCutTool.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UPlaneCutTool :
    public UMultiSelectionTool,
    public IModifierToggleBehaviorTarget

Remarks

Simple Mesh Plane Cutting Tool

Variables

Name Description

Protected variable UProperty

UAcceptOutputPr...

 

AcceptProperties

Protected variable

IToolsContextAs...

 

AssetAPI

Protected variable UProperty

UPlaneCutToolPr...

 

BasicProperties

Protected variable

bool

 

bIgnoreSnappingToggle

Protected variable

FViewCameraStat...

 

CameraState

Protected variable UProperty

FQuat

 

CutPlaneOrientation

Orientation of cutting plane

Protected variable UProperty

FVector

 

CutPlaneOrigin

Origin of cutting plane

Protected variable UProperty

TArray< UDynami...

 

MeshesToCut

Protected variable

TArray< int >

 

MeshSubObjectAttribIndices

For each mesh in MeshesToCut, the index of the attached generic triangle attribute tracking the object index

Protected variable

TArray< float >

 

MeshUVScaleFactor

UV Scale factor is cached based on the bounding box of the mesh before any cuts are performed, so you don't get inconsistent UVs if you multi-cut the object to smaller sizes.

Protected variable UProperty

UTransformGizmo...

 

PlaneTransformGizmo

Protected variable UProperty

UTransformProxy...

 

PlaneTransformProxy

Protected variable UProperty

TArray< UMeshOp...

 

Previews

Protected variable

IClickBehaviorT...

 

SetPointInWorldConnector

Protected variable

UWorld *

 

TargetWorld

Public variable

friend

 

UPlaneCutOperatorFactory

Constructors

Name Description

Public function

UPlaneCutTool()

Functions

Name Description

Protected function UFunction Category, Meta callineditor

void

 

Cut()

Cut with the current plane without exiting the tool

Protected function

void

 

GenerateAsset

(
    const TArray< FDynamicMeshOpResult ...
)

Protected function

void

 

MeshChanged()

Public function Virtual

void

 

SetAssetAPI

(
    IToolsContextAssetAPI* AssetAP...
)

Protected function Virtual

void

 

SetCutPlaneFromWorldPos

(
    const FVector& Position,
    const FVector& Normal
)

Protected function

void

 

SetupPreviews()

Public function Virtual

void

 

SetWorld

(
    UWorld* World
)

Protected function

void

 

TransformChanged

(
    UTransformProxy* Proxy,
    FTransform Transform
)

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

 

RegisterActions

(
    FInteractiveToolActionSet& ActionS...
)

Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction.

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

Public function Virtual

void

 

Tick

(
    float DeltaTime
)

Allow the Tool to do any necessary processing on Tick

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Overridden from IModifierToggleBehaviorTarget

Name Description

Public function Virtual

void

 

OnUpdateModifierState

(
    int ModifierID,
    bool bIsOn
)

IClickSequenceBehaviorTarget implementation.

Constants

Name

Description

IgnoreSnappingModifier

Flags used to identify modifier keys/buttons

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