UPlaneCutTool

Simple Mesh Plane Cutting Tool

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MeshModelingToolsExp

Header

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

Include

#include "PlaneCutTool.h"

Syntax

UCLASS()
class UPlaneCutTool : public UMultiSelectionMeshEditingTool

Remarks

Simple Mesh Plane Cutting Tool

Variables

Name Description

Protected variable UProperty

TObjectPtr< UAc...

 

AcceptProperties

Protected variable UProperty

TObjectPtr< UPl...

 

BasicProperties

Protected variable

FViewCameraStat...

 

CameraState

Protected variable

UE::Geometry::F...

 

CutPlaneWorld

Cutting plane.

Protected variable UProperty

TArray< TObject...

 

MeshesToCut

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

EPlaneCutToolAc...

 

PendingAction

Protected variable UProperty

TObjectPtr< UCo...

 

PlaneMechanic

Protected variable UProperty

TArray< TObject...

 

Previews

Public variable

friend

 

UPlaneCutOperatorFactory

Constructors

Name Description

Public function

UPlaneCutTool()

Functions

Name Description

Protected function UFunction Category, Meta callineditor

void

 

Cut()

Action buttons.

Protected function

void

 

DoCut()

Protected function

void

 

DoFlipPlane()

Protected function UFunction Category, Meta callineditor

void

 

FlipPlane()

Flip the cutting plane (Hotkey: R)

Protected function

void

 

GenerateAsset

(
    const TArray< FDynamicMeshOpResult ...
)

Protected function

void

 

InvalidatePreviews()

Protected function

void

 

SetupPreviews()

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

 

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

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally