Navigation
API > API/Plugins > API/Plugins/MeshModelingTools
Deform a mesh using a regular hexahedral lattice
| Name | ULatticeDeformerTool |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingTools/Public/LatticeDeformerTool.h |
| Include Path | #include "LatticeDeformerTool.h" |
Syntax
UCLASS (MinimalAPI)
class ULatticeDeformerTool :
public UMultiTargetWithSelectionTool ,
public IInteractiveToolManageGeometrySelectionAPI ,
public IModelingToolExternalDynamicMeshUpdateAPI
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → UMultiSelectionTool → UMultiTargetWithSelectionTool → ULatticeDeformerTool
Implements Interfaces
- IInputBehaviorSource
- IInteractiveToolCameraFocusAPI
- IInteractiveToolManageGeometrySelectionAPI
- IModelingToolExternalDynamicMeshUpdateAPI
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ULatticeDeformerTool() |
LatticeDeformerTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UE::Geometry::FVector3i GetLatticeResolution() |
LatticeDeformerTool.h | ||
void SetLatticeStorage
(
const TScriptInterface< ILatticeStateStorage >& InLatticeStorage |
LatticeDeformerTool.h |
Overridden from UMultiTargetWithSelectionTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnShutdown
(
EToolShutdownType ShutdownType |
LatticeDeformerTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAccept() |
LatticeDeformerTool.h | ||
virtual void DrawHUD
(
FCanvas* Canvas, |
LatticeDeformerTool.h | ||
virtual bool HasAccept() |
LatticeDeformerTool.h | ||
virtual bool HasCancel() |
LatticeDeformerTool.h | ||
virtual void OnTick
(
float DeltaTime |
LatticeDeformerTool.h | ||
virtual void Render
(
IToolsContextRenderAPI* RenderAPI |
LatticeDeformerTool.h | ||
virtual void Setup() |
LatticeDeformerTool.h |
Overridden from IInteractiveToolManageGeometrySelectionAPI
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsInputSelectionValidOnOutput() |
IInteractiveToolManageGeometrySelectionAPI this tool won't update external geometry selection or change selection-relevant mesh IDs. | LatticeDeformerTool.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyAction
(
ELatticeDeformerToolAction Action |
LatticeDeformerTool.h | ||
void ClearConstrainedPoints() |
LatticeDeformerTool.h | ||
void ConstrainSelectedPoints() |
LatticeDeformerTool.h | ||
void InitializeLattice
(
TArray< FVector3d >& OutLatticePoints, |
Create and store an FFFDLattice. Pass out the lattice's positions and edges. | LatticeDeformerTool.h | |
void RebuildDeformer() |
LatticeDeformerTool.h | ||
void RequestAction
(
ELatticeDeformerToolAction Action |
LatticeDeformerTool.h | ||
void ResetConstrainedPoints() |
LatticeDeformerTool.h | ||
void SoftDeformLattice() |
LatticeDeformerTool.h | ||
void StartPreview() |
LatticeDeformerTool.h | ||
void UpdateMechanicColorOverrides() |
LatticeDeformerTool.h |
Overridden from IModelingToolExternalDynamicMeshUpdateAPI
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AllowToolMeshUpdates() |
IInteractiveToolExternalDynamicMeshUpdateAPI methods. | LatticeDeformerTool.h | |
virtual int32 NumToolMeshes() |
LatticeDeformerTool.h | ||
virtual void ProcessToolMeshes
(
TFunctionRef< void(const UE::Geometry::FDynamicMesh3&, int32 MeshIdx)> ProcessMesh |
LatticeDeformerTool.h | ||
virtual void UpdateToolMeshes
(
TFunctionRef< TUniquePtr< FMeshRegionChangeBase >(UE::Geometry::FDynamicMesh3&, int32 MeshIdx)> Upd... |
LatticeDeformerTool.h |