UExtrudePolygonCommand

Extrudes the polygon along an axis

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

PolygonModeling

Header

/Engine/Plugins/Editor/MeshEditor/Source/PolygonModeling/Public/ExtrudePolygon.h

Include

#include "ExtrudePolygon.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UExtrudePolygonCommand : public UMeshEditorEditCommand

Remarks

Extrudes the polygon along an axis

Variables

Name Description

Protected variable

FVector

 

ExtrudePolygonAxisDirection

Protected variable

FVector

 

ExtrudePolygonAxisOrigin

When extruding polygons, we need to keep track of the interactor's impact point and normal, because the user is going to be aiming their interactor along that axis to choose an extrusion point

Constructors

Name Description

Protected function

UExtrudePolygonCommand()

Functions

Name Description

Protected function

void

 

FindExtrudeDistanceUsingInteractor

(
    IMeshEditorModeEditingContract& Me...,
    UViewportInteractor* ViewportI...,
    const UEditableMesh* EditableM...,
    const FVector AxisOrigin,
    const FVector AxisDirection,
    const float AxisLength,
    float& OutExtrudeDistance
)

Figures out how far to extrude the polygon based on where the interactor is aiming

Overridden from UMeshEditorEditCommand

Name Description

Protected function Virtual

void

 

ApplyDuringDrag

(
    IMeshEditorModeEditingContract& Me...,
    UViewportInteractor* ViewportI...
)

Applies this command every frame while dragging

Protected function Virtual

bool

 

TryStartingToDrag

(
    IMeshEditorModeEditingContract& Me...,
    UViewportInteractor* ViewportI...
)

Called when the user starts to drag on an element.

Overridden from UMeshEditorCommand

Name Description

Protected function Virtual

void

 

AddToVRRadialMenuActionsMenu

(
    IMeshEditorModeUIContract& MeshEdi...,
    FMenuBuilder& MenuBuilder,
    TSharedPtr< FUICommandList > Comman...,
    const FName TEMPHACK_StyleSetName,
    UVREditorMode* VRMode
)

Allows this command to directly add a button to the VR Mode's radial menu

Protected function Virtual Const

EEditableMes...

 

GetElementType()

Which mesh element does this command apply to?

Protected function Virtual

void

 

RegisterUICommand

(
    FBindingContext* BindingContex...
)

Registers the UI command for this mesh editor command

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