Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsExp
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractiveTool
- USingleSelectionTool
- UMeshSurfacePointTool
- UMeshSculptToolBase
- UMeshVertexSculptTool
References
| Module | MeshModelingToolsExp |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/MeshVertexSculptTool.h |
| Include | #include "MeshVertexSculptTool.h" |
Syntax
UCLASS&40;&41;
class UMeshVertexSculptTool : public UMeshSculptToolBase
Remarks
Mesh Vertex Sculpt Tool Class
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< int32 > | AccumulatedTriangleROI | ||
| TUniquePtr< UE::Geometry::FPolygroupSet > | ActiveGroupSet | ||
| FMeshVertexChangeBuilder * | ActiveVertexChange | ||
| TObjectPtr< UVertexBrushAlphaProperties > | AlphaProperties | ||
| bool | bApplySymmetry | ||
| FDynamicMesh3 | BaseMesh | ||
| TArray< int32 > | BaseMeshIndexBuffer | ||
| TFunction< bool(int32, const FVector3d &, double MaxDist, FVector3d &, FVector3d &)> | BaseMeshQueryFunc | ||
| UE::Geometry::FDynamicMeshOctree3 | BaseMeshSpatial | ||
| bool | bCachedFreezeTarget | ||
| bool | bHaveBrushAlpha | ||
| bool | bMeshSymmetryIsValid | ||
| TObjectPtr< UTexture2D > | BrushAlpha | ||
| UE::Geometry::FImageDimensions | BrushAlphaDimensions | ||
| UE::Geometry::TImageBuilder< FVector4f > | BrushAlphaValues | ||
| bool | bStampUpdatePending | ||
| bool | bTargetDirty | Whether normal needs recompute. | |
| bool | bUndoUpdatePending | ||
| TObjectPtr< UDynamicMeshComponent > | DynamicMeshComponent | ||
| int32 | InitialStrokeTriangleID | ||
| TArray< int > | NormalsBuffer | ||
| TArray< std::atomic< bool > > | NormalsFlags | ||
| UE::Geometry::FUniqueIndexSet | NormalsROIBuilder | ||
| UE::Geometry::FDynamicMeshOctree3 | Octree | ||
| TArray< uint32 > | OctreeUpdateTempBuffer | ||
| TArray< bool > | OctreeUpdateTempFlagBuffer | ||
| OnInteractiveToolDetailsPanelRequestRebuild | OnDetailsPanelRequestRebuild | ||
| FDelegateHandle | OnDynamicMeshComponentChangedHandle | ||
| EMeshVertexSculptBrushType | PendingStampType | ||
| TObjectPtr< AInternalToolFrameworkActor > | PreviewMeshActor | ||
| TArray< int > | RangeQueryTriBuffer | ||
| TArray< FVector3d > | ROIPositionBuffer | ||
| TArray< FVector3d > | ROIPrevPositionBuffer | ||
| double | SculptMaxFixedHeight | ||
| TObjectPtr< UVertexBrushSculptProperties > | SculptProperties | Properties that control sculpting | |
| FRandomStream | StampRandomStream | ||
| TFuture< void > | StampUpdateOctreeFuture | ||
| TArray< FVector3d > | SymmetricROIPositionBuffer | ||
| TArray< FVector3d > | SymmetricROIPrevPositionBuffer | ||
| TArray< int > | SymmetricVertexROI | ||
| TPimplPtr< UE::Geometry::FMeshPlanarSymmetry > | Symmetry | ||
| TObjectPtr< UMeshSymmetryProperties > | SymmetryProperties | ||
| TArray< int32 > | TriangleComponentIDs | ||
| TArray< int > | TriangleROIArray | ||
| UE::Geometry::FUniqueIndexSet | TriangleROIBuilder | ||
| TArray< UE::Geometry::FIndex3i > | TriangleROIInBuf | ||
| TFuture< bool > | UndoNormalsFuture | ||
| TFuture< bool > | UndoUpdateBaseMeshFuture | ||
| TFuture< bool > | UndoUpdateOctreeFuture | ||
| TArray< int > | VertexROI | ||
| UE::Geometry::FUniqueIndexSet | VertexROIBuilder |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TFuture< void > | ApplyStamp () |
||
| void | BeginChange () |
||
| void | EndChange () |
||
| bool | GetBaseMeshNearest
(
int32 VertexID, |
||
| bool | IsHitTriangleBackFacing
(
int32 TriangleID, |
||
| void | OnDynamicMeshComponentChanged
(
UDynamicMeshComponent* Component, |
Realtime visualization | |
| double | SampleBrushAlpha
(
const FSculptBrushStamp& Stamp, |
||
| void | SetActiveBrushType
(
int32 Identifier |
||
| void | SetActiveFalloffType
(
int32 Identifier |
||
| void | SetRegionFilterType
(
int32 Identifier |
||
| void | |||
| void | UndoRedo_RestoreSymmetryPossibleState
(
bool bSetToValue |
||
| void | UpdateBaseMesh
(
const TSet< int32 >* TriangleROI |
||
| void | UpdateBrushAlpha
(
UTexture2D* NewAlpha |
||
| bool | UpdateBrushPosition
(
const FRay& WorldRay |
||
| void | UpdateBrushType
(
EMeshVertexSculptBrushType BrushType |
||
| void | UpdateROI
(
const FVector3d& BrushPos |
||
| bool | UpdateStampPosition
(
const FRay& WorldRay |
||
| void | |||
| void |
Overridden from UMeshSculptToolBase
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| int32 | FindHitSculptMeshTriangle
(
const FRay3d& LocalRay |
||
| int32 | FindHitTargetMeshTriangle
(
const FRay3d& LocalRay |
||
| FDynamicMesh3 * | GetBaseMesh () |
||
| const FDynamicMesh3 * | GetBaseMesh () |
||
| UBaseDynamicMeshComponent * | Subclass must implement this and return relevant rendering component | ||
| void | Client currently needs to implement these... | ||
| void | UMeshSculptToolBase API. | ||
| UPreviewMesh * | MakeBrushIndicatorMesh
(
UObject* Parent, |
Called by InitializeIndicator to create a mesh for the brush ROI indicator. Default is sphere. | |
| void | OnBeginStroke
(
const FRay& WorldRay |
||
| void | OnEndStroke () |
||
| bool | |||
| void | UpdateHoverStamp
(
const FFrame3d& StampFrameWorld |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| bool | HasAccept () |
||
| bool | HasCancel () |
||
| void | OnPropertyModified
(
UObject* PropertySet, |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes | |
| void | OnTick
(
float DeltaTime |
Allow the Tool to do any necessary processing on Tick | |
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Allow the Tool to do any custom drawing (ie via PDI/RHI) | |
| void | Setup () |
Register InputBehaviors, etc | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |
Overridden from IHoverBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| bool | OnUpdateHover
(
const FInputDeviceRay& DevicePos |
Update active hover sequence with new input position |
Typedefs
| Name | Description |
|---|---|
| OnInteractiveToolDetailsPanelRequestRebuild | OnDetailsPanelRequestRebuild is broadcast by the tool when it detects it needs to have it's details panel rebuilt outside of normal rebuilding triggers, such as changing property set objects. |