Navigation
API > API/Plugins > API/Plugins/DirectMeshControl
UDirectMeshPolygroupTool generates bone-based polygroups on a skeletal mesh asynchronously and commits the result to a named triangle label layer on Accept.
| Name | UDirectMeshPolygroupTool |
| Type | class |
| Header File | /Engine/Plugins/Experimental/Animation/DirectMeshControl/Source/DirectMeshControl/Public/Tools/DirectMeshPolygroupTool.h |
| Include Path | #include "Tools/DirectMeshPolygroupTool.h" |
Syntax
UCLASS ()
class UDirectMeshPolygroupTool : public USingleTargetWithSelectionTool
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → USingleSelectionTool → USingleTargetWithSelectionTool → UDirectMeshPolygroupTool
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDirectMeshPolygroupTool() |
Tools/DirectMeshPolygroupTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateOpParameters
(
FDirectMeshPolygroupOp& DirectMeshPolygroupOp |
Copies the current properties values and bone data into DirectMeshPolygroupOp so that the operator uses up-to-date settings on the next compute pass. | Tools/DirectMeshPolygroupTool.h |
Public Virtual
Overridden from USingleTargetWithSelectionTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnShutdown
(
EToolShutdownType ShutdownType |
Commits the computed polygroup layer to the skeletal mesh on Accept, or discards the result on Cancel. | Tools/DirectMeshPolygroupTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAccept() |
Returns true when the background operator has produced a valid result that can be committed. | Tools/DirectMeshPolygroupTool.h | |
virtual bool HasAccept() |
Returns true, the polygroup tool supports acceptance. | Tools/DirectMeshPolygroupTool.h | |
virtual bool HasCancel() |
Returns true, the polygroup tool supports cancellation. | Tools/DirectMeshPolygroupTool.h | |
virtual void OnTick
(
float DeltaTime |
Ticks the background compute operator and refreshes the visualization when a new result is available. | Tools/DirectMeshPolygroupTool.h | |
virtual void Setup() |
Builds the preview mesh, registers properties, and starts the background compute operator. | Tools/DirectMeshPolygroupTool.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void OnSettingsModified() |
Invalidates the preview compute, triggering a new background operator run. | Tools/DirectMeshPolygroupTool.h | |
void UpdateVisualization() |
Refreshes the polygroup edge overlay and per-group color visualization after a new compute result arrives. | Tools/DirectMeshPolygroupTool.h |