UHoleFillTool

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

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

Include

#include "HoleFillTool.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UHoleFillTool :
    public USingleSelectionTool,
    public IClickBehaviorTarget,
    public IHoverBehaviorTarget

Remarks

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

Variables

Name Description

Protected variable UProperty

UHoleFillToolAc...

 

Actions

Protected variable

TArray< FSelect...

 

ActiveBoundaryLoopSelection

Protected variable

bool

 

bHavePendingAction

Protected variable

FDynamicMeshAAB...

 

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< FDy...

 

OriginalMesh

Input mesh. Ownership shared with Op.

Protected variable

EHoleFillToolAc...

 

PendingAction

Protected variable UProperty

UMeshOpPreviewW...

 

Preview

Protected variable UProperty

UHoleFillToolPr...

 

Properties

Protected variable UProperty

UPolygonSelecti...

 

SelectionMechanic

Protected variable UProperty

USmoothHoleFill...

 

SmoothHoleFillProperties

Protected variable UProperty

UHoleFillStatis...

 

Statistics

Protected variable

UWorld *

 

TargetWorld

World in which to create the Preview mesh actor.

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< FEdgeLoop >& OutLoops
)

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 Virtual

void

 

RequestAction

(
    EHoleFillToolActions Action
)

Protected function

void

 

SelectAll()

Protected function

void

 

SetupPreview()

Create the Preview object.

Protected function

void

 

SetWorld

(
    UWorld* World
)

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

Overridden from IClickBehaviorTarget

Name Description

Public function Virtual

FInputRayHit

 

IsHitByClick

(
    const FInputDeviceRay& ClickPos
)

IClickBehaviorTarget.

Public function Virtual

void

 

OnClicked

(
    const FInputDeviceRay& ClickPos
)

Notify Target that click ocurred

Overridden from IHoverBehaviorTarget

Name Description

Public function Virtual

FInputRayHit

 

BeginHoverSequenceHitTest

(
    const FInputDeviceRay& PressPos
)

IHoverBehaviorTarget.

Public function Virtual

void

 

OnBeginHover

(
    const FInputDeviceRay& DevicePos
)

Initialize hover sequence at given position

Public function Virtual

void

 

OnEndHover()

Terminate active hover sequence

Public function Virtual

bool

 

OnUpdateHover

(
    const FInputDeviceRay& DevicePos
)

Update active hover sequence with new input position

Classes

Name

Description

Protected class

FBasicTopology

Object used to get boundary loop information.

Protected struct

FSelectedBoundaryLoop

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