URemeshMeshTool

Simple Mesh Remeshing Tool

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

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

Include

#include "RemeshMeshTool.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class URemeshMeshTool :
    public UMultiSelectionTool,
    public IDynamicMeshOperatorFactory

Remarks

Simple Mesh Remeshing Tool

this is a subclass of UMultiSelectionTool, however we currently only ever apply it to one mesh at a time. The function URemeshMeshToolBuilder::CanBuildTool will return true only when a single mesh is selected, and the tool will only be applied to the first mesh in the selection list. The reason we inherit from UMultiSelectionTool is so that subclasses of this class can work with multiple meshes (see, for example, UProjectToTargetTool.)

Variables

Constructors

Name Description

Public function

URemeshMeshTool

(
    const FObjectInitializer&
)

Functions

Name Description

Protected function

double

 

CalculateTargetEdgeLength

(
    int TargetTriCount
)

Protected function

void

 

GenerateAsset

(
    const FDynamicMeshOpResult& Result
)

Public function Virtual

void

 

SetAssetAPI

(
    IToolsContextAssetAPI* AssetAP...
)

Public function Virtual

void

 

SetWorld

(
    UWorld* World
)

Protected function

void

 

UpdateVisualization()

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

Public function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Allow the Tool to do any custom drawing (ie via PDI/RHI)

Public function Virtual

void

 

Setup()

Called by ToolManager to initialize the Tool after ToolBuilder::BuildTool() has been called

Public function Virtual

void

 

Shutdown

(
    EToolShutdownType ShutdownType
)

Called by ToolManager to shut down the Tool

Overridden from IDynamicMeshOperatorFactory

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