UHoleFillTool

Tool Inherit from [IClickBehaviorTarget](API\Runtime\InteractiveToolsFramework\BaseBehaviors\IClickBehaviorTarget) so we can click on boundary loops.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MeshModelingToolsExp

Header

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

Include

#include "HoleFillTool.h"

Syntax

UCLASS()
class UHoleFillTool : public USingleSelectionMeshEditingTool

Remarks

Tool Inherit from IClickBehaviorTarget so we can click on boundary loops.

Variables

Name Description

Protected variable UProperty

TObjectPtr< UHo...

 

Actions

Protected variable

TArray< FSelect...

 

ActiveBoundaryLoopSelection

Protected variable

bool

 

bHavePendingAction

Protected variable

UE::Geometry::F...

 

MeshSpatial

Used for hit querying.

Protected variable

float

 

MeshUVScaleFactor

UV Scale factor is cached based on the bounding box of the mesh before any fills are performed.

Protected variable

TSet< int32 >

 

NewTriangleIDs

Protected variable

TSharedPtr< UE:...

 

OriginalMesh

Input mesh. Ownership shared with Op.

Protected variable

EHoleFillToolAc...

 

PendingAction

Protected variable UProperty

TObjectPtr< UMe...

 

Preview

Protected variable UProperty

TObjectPtr< UHo...

 

Properties

Protected variable UProperty

TObjectPtr< UPo...

 

SelectionMechanic

Protected variable UProperty

TObjectPtr< USm...

 

SmoothHoleFillProperties

Protected variable UProperty

TObjectPtr< UHo...

 

Statistics

Protected variable

TUniquePtr< FBa...

 

Topology

Protected variable

friend

 

UHoleFillOperatorFactory

Protected variable

friend

 

UHoleFillStatisticsProperties

Protected variable

friend

 

UHoleFillToolBuilder

Functions

Name Description

Protected function Virtual

void

 

ApplyAction

(
    EHoleFillToolActions ActionType
)

Protected function

void

 

ClearSelection()

Protected function Const

void

 

GetLoopsToFill

(
    TArray< UE::Geometry::FEdgeLoop >&...
)

Populate an array of Edge Loops to be processed by an FHoleFillOp.

Protected function

void

 

InvalidatePreviewResult()

Invalidate background compute result (some input changed)

Public function

void

 

OnSelectionModified()

Public function Virtual

void

 

RequestAction

(
    EHoleFillToolActions Action
)

Protected function

void

 

SelectAll()

Protected function

void

 

SetupPreview()

Create the Preview object.

Protected function

void

 

UpdateActiveBoundaryLoopSelection()

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

Protected function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Just call the SelectionMechanism's Render function.

Public function Virtual

void

 

Setup()

UMeshSurfacePointTool.

Public function Virtual

void

 

Shutdown

(
    EToolShutdownType ShutdownType
)

Called by ToolManager to shut down the Tool

Classes

Name

Description

Protected class

FBasicTopology

Object used to get boundary loop information.

Protected struct

FSelectedBoundaryLoop