UEditMeshPolygonsTool

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

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

Include

#include "EditMeshPolygonsTool.h"

Syntax

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

Variables

Name Description

Protected variable

TArray< FSelect...

 

ActiveEdgeSelection

Protected variable

FAxisAlignedBox...

 

ActiveSelectionBounds

Protected variable

FFrame3d

 

ActiveSelectionFrameLocal

Protected variable

FFrame3d

 

ActiveSelectionFrameWorld

Protected variable

TArray< int32 >

 

ActiveTriangleSelection

Protected variable

FMeshVertexChan...

 

ActiveVertexChange

Protected variable

bool

 

bGizmoUpdatePending

Protected variable

bool

 

bInDrag

True for the duration of UI click+drag.

Protected variable

bool

 

bPreviewUpdatePending

Protected variable

bool

 

bSelectionStateDirty

Protected variable

bool

 

bSpatialDirty

Protected variable

bool

 

bTriangleMode

If bTriangleMode = true, then we use a per-triangle FTriangleGroupTopology instead of polygroup topology.

Protected variable

bool

 

bWasTopologyEdited

Protected variable

FViewCameraStat...

 

CameraState

Protected variable UProperty

UPolyEditCommon...

 

CommonProps

Protected variable

int32

 

CurrentOperationTimestamp

Protected variable

EPreviewMateria...

 

CurrentPreviewMaterial

Protected variable

ECurrentToolMod...

 

CurrentToolMode

Protected variable UProperty

USpatialCurveDi...

 

CurveDistMechanic

Protected variable UProperty

UPolyEditCutPro...

 

CutProperties

Protected variable UProperty

USimpleDynamicM...

 

DynamicMeshComponent

Protected variable UProperty

UEditMeshPolygo...

 

EditActions

Protected variable UProperty

UEditMeshPolygo...

 

EditActions_Triangles

Protected variable UProperty

UEditMeshPolygo...

 

EditEdgeActions

Protected variable UProperty

UEditMeshPolygo...

 

EditEdgeActions_Triangles

Protected variable UProperty

UPolyEditPrevie...

 

EditPreview

Protected variable UProperty

UEditMeshPolygo...

 

EditUVActions

Protected variable UProperty

UPlaneDistanceF...

 

ExtrudeHeightMechanic

Protected variable UProperty

UPolyEditExtrud...

 

ExtrudeProperties

Protected variable

FFrame3d

 

InitialGizmoFrame

Protected variable

FVector3d

 

InitialGizmoScale

Protected variable UProperty

UPolyEditInsetP...

 

InsetProperties

Protected variable

FFrame3d

 

LastGeometryFrame

Protected variable

FFrame3d

 

LastTransformerFrame

Protected variable

FFrame3d

 

LastUpdateGizmoFrame

Protected variable

FVector3d

 

LastUpdateGizmoScale

Protected variable

FGroupTopologyD...

 

LinearDeformer

Data for current drag

Protected variable

FFrame3d

 

LockedTransfomerFrame

Protected variable

FDynamicMeshAAB...

 

MeshSpatial

Protected variable

int32

 

ModifiedTopologyCounter

Protected variable UProperty

UMultiTransform...

 

MultiTransformer

Protected variable UProperty

UPolyEditOffset...

 

OffsetProperties

Protected variable

FDelegateHandle

 

OnDynamicMeshComponentChangedHandle

Protected variable UProperty

UPolyEditOutset...

 

OutsetProperties

Protected variable

EEditMeshPolygo...

 

PendingAction

Protected variable UProperty

UPolygonSelecti...

 

SelectionMechanic

Protected variable UProperty

UPolyEditSetUVP...

 

SetUVProperties

Protected variable UProperty

UCollectSurface...

 

SurfacePathMechanic

Protected variable

TUniquePtr< FGr...

 

Topology

Protected variable

float

 

UVScaleFactor

UV Scale factor to apply to texturing on any new geometry (e.g. new faces added by extrude)

Protected variable

FTransform3d

 

WorldTransform

Camera state at last render

Constructors

Name Description

Public function

UEditMeshPolygonsTool()

Functions

Name Description

Protected function

void

 

AfterTopologyEdit()

Protected function

void

 

ApplyCollapseEdge()

Protected function

void

 

ApplyCollapseSingleEdge()

Protected function

void

 

ApplyCutFaces()

Protected function

void

 

ApplyDecompose()

Protected function

void

 

ApplyDelete()

Protected function

void

 

ApplyDisconnect()

Protected function

void

 

ApplyExtrude

(
    bool bIsOffset
)

Protected function

void

 

ApplyFillHole()

Protected function

void

 

ApplyFlipNormals()

Protected function

void

 

ApplyFlipSingleEdge()

Protected function

void

 

ApplyInset

(
    bool bOutset
)

Protected function

void

 

ApplyMerge()

Protected function

void

 

ApplyPlaneCut()

Protected function

void

 

ApplyPokeSingleFace()

Protected function

void

 

ApplyRecalcNormals()

Protected function

void

 

ApplyRetriangulate()

Protected function

void

 

ApplySetUVs()

Protected function

void

 

ApplySplitSingleEdge()

Protected function

void

 

ApplyStraightenEdges()

Protected function

void

 

ApplyWeldEdges()

Protected function

void

 

BeginChange()

Protected function

void

 

BeginCutFaces()

Protected function

void

 

BeginExtrude

(
    bool bIsNormalOffset
)

Protected function

void

 

BeginInset

(
    bool bOutset
)

Protected function

bool

 

BeginMeshBoundaryEdgeEditChange

(
    bool bOnlySimple
)

Protected function

bool

 

BeginMeshEdgeEditChange()

Protected function

bool

 

BeginMeshEdgeEditChange

(
    TFunctionRef< bool)> GroupEdg...
)

Protected function

bool

 

BeginMeshFaceEditChange()

Protected function

bool

 

BeginMeshFaceEditChangeWithPreview()

Protected function

void

 

BeginSetUVs()

Protected function

void

 

CacheUpdate_Gizmo()

Protected function

void

 

CancelMeshEditChange()

Protected function Const

bool

 

CheckInOperation

(
    int32 Timestamp
)

Protected function

void

 

CompleteMeshEditChange

(
    const FText& TransactionLabel,
    TUniquePtr< FToolCommandChange > Ed...,
    const FGroupTopologySelection& Out...
)

Protected function

void

 

ComputeUpdate_Gizmo()

Public function

void

 

EnableTriangleMode()

Protected function

void

 

EndChange()

Protected function Const

FVector3d

 

GetExtrudeDirection()

Protected function

FDynamicMesh...

 

GetSpatial()

Protected function

void

 

OnDynamicMeshComponentChanged()

Realtime visualization

Protected function

void

 

OnMultiTransformerTransformBegin()

Protected function

void

 

OnMultiTransformerTransformEnd()

Protected function

void

 

OnMultiTransformerTransformUpdate()

Protected function

void

 

OnSelectionModifiedEvent()

Protected function

void

 

PrecomputeTopology()

Public function Virtual

void

 

RequestAction

(
    EEditMeshPolygonsToolActions Action...
)

Protected function

void

 

RestartExtrude()

Protected function

void

 

SetActionButtonPanelsVisible

(
    bool bVisible
)

Protected function

void

 

UpdateChangeFromROI

(
    bool bFinal
)

Protected function

void

 

UpdateDeformerFromSelection

(
    const FGroupTopologySelection& Sel...
)

Protected function

void

 

UpdateEditPreviewMaterials

(
    EPreviewMaterialType MaterialType
)

Protected function

void

 

UpdateMultiTransformerFrame

(
    const FFrame3d* UseFrame
)

Protected function

void

 

UpdateSetUVS()

Overridden from UMeshSurfacePointTool

Name Description

Public function Virtual

bool

 

HitTest

(
    const FRay& Ray,
    FHitResult& OutHit
)

UMeshSurfacePointTool API.

Public function Virtual

void

 

OnBeginDrag

(
    const FRay& Ray
)

This function is called when the user begins a click-drag-release interaction

Public function Virtual

void

 

OnEndDrag

(
    const FRay& Ray
)

This function is called when the user releases the button driving a click-drag-release interaction

Public function Virtual

void

 

OnUpdateDrag

(
    const FRay& Ray
)

This function is called each frame that the user is in a click-drag-release interaction

Overridden from UInteractiveTool

Name Description

Public function Virtual Const

bool

 

HasAccept()

Public function Virtual Const

bool

 

HasCancel()

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

Register InputBehaviors, etc

Public function Virtual

void

 

Shutdown

(
    EToolShutdownType ShutdownType
)

Called by ToolManager to shut down the Tool

Overridden from IClickDragBehaviorTarget

Name Description

Public function Virtual

FInputRayHit

 

CanBeginClickDragSequence

(
    const FInputDeviceRay& PressPos
)

IClickDragBehaviorTarget API.

Overridden from IHoverBehaviorTarget

Name Description

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

Overridden from IClickBehaviorTarget

Name Description

Public function Virtual

FInputRayHit

 

IsHitByClick

(
    const FInputDeviceRay& ClickPos
)

IClickBehaviorTarget API.

Public function Virtual

void

 

OnClicked

(
    const FInputDeviceRay& ClickPos
)

Notify Target that click ocurred

Classes

Name

Description

Protected struct

FSelectedEdge

Enums

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