Files
UnrealEngineUWP/Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingTools/Public/Commands/DeleteGeometrySelectionCommand.h
Ryan Schmidt 6032c02f0e ModelingMode: add Delete command for current Mesh Selection
ToolsFramework:
add UInteractiveCommand and UInteractiveCommandArguments types, base classes for 'interactive commands' which are intended to be used for atomic actions, ie stateless, no user interaction, etc
ModelingComponents:
add UGeometrySelectionEditCommand/Arguments, this is a UInteractiveCommand that uses a FGeometrySelection as an argument
add UGeometrySelectionManager::CanExecuteSelectionCommand() and ExecuteSelectionCommand()

MeshModelingTools:
add UDeleteGeometrySelectionCommand, deletes selected mesh geometry by converting input selection to list of triangles

ModelingToolsEditorMode:
add Delete command to ModelingMode and UI. ModelingToolsEditorMode currently is keeping active command set alive via new UModelingToolsEditorMode::ModelingModeCommands member.

#rb none
#preflight 62d195b9a66919b6701d89a8

[CL 21113757 by Ryan Schmidt in ue5-main branch]
2022-07-15 13:49:13 -04:00

24 lines
862 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Selection/SelectionEditInteractiveCommand.h"
#include "DeleteGeometrySelectionCommand.generated.h"
/**
* UDeleteGeometrySelectionCommand deletes the geometric elements identified by the Selection.
* Currently only supports mesh selections (Triangle and Polygroup types)
* Deletes selected faces, or faces connected to selected edges, or faces connected to selected vertices.
*/
UCLASS()
class MESHMODELINGTOOLS_API UDeleteGeometrySelectionCommand : public UGeometrySelectionEditCommand
{
GENERATED_BODY()
public:
virtual FText GetCommandShortString() const override;
virtual bool CanExecuteCommandForSelection(UGeometrySelectionEditCommandArguments* Arguments) override;
virtual void ExecuteCommandForSelection(UGeometrySelectionEditCommandArguments* Arguments) override;
};