Navigation
API > API/Plugins > API/Plugins/MeshModelingTools
Inheritance Hierarchy
- UMultiSelectionMeshEditingTool
- IDynamicMeshOperatorFactory
- UBaseCreateFromSelectedTool
- UCutMeshWithMeshTool
References
| Module | MeshModelingTools |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingTools/Public/CutMeshWithMeshTool.h |
| Include | #include "CutMeshWithMeshTool.h" |
Syntax
UCLASS ()
class UCutMeshWithMeshTool : public UBaseCreateFromSelectedTool
Remarks
UCutMeshWithMeshTool cuts an input mesh into two pieces based on a second input mesh. Essentially this just both a Boolean Subtract and a Boolean Intersection. However doing those as two separate operations involves quite a few steps, so this Tool does it in a single step and with some improved efficiency.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< int > | CreatedIntersectBoundaryEdges | ||
| TArray< int > | CreatedSubtractBoundaryEdges | For visualization of any errors in the currently-previewed CSG operation | |
| TObjectPtr< UCutMeshWithMeshToolProperties > | CutProperties | ||
| TObjectPtr< ULineSetComponent > | DrawnLineSet | ||
| FDynamicMesh3 | IntersectionMesh | ||
| TObjectPtr< UPreviewMesh > | IntersectPreviewMesh | ||
| TSharedPtr< FDynamicMesh3, ESPMode::ThreadSafe > | OriginalCuttingMesh | ||
| TSharedPtr< FDynamicMesh3, ESPMode::ThreadSafe > | OriginalTargetMesh |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void |
Overridden from UBaseCreateFromSelectedTool
| Type | Name | Description | |
|---|---|---|---|
| void | ConvertInputsAndSetPreviewMaterials
(
bool bSetPreviewMesh |
UBaseCreateFromSelectedTool API - subclasses typically implement these functions After preview is created, this is called to convert inputs and set preview materials (grouped together because materials may come from inputs) Subclasses should always implement this. | |
| FText | Return the name of the action to be used in the Undo stack | ||
| FString | Return the name to be used for generated assets. | ||
| void | Overload to save any added properties in the subclasses; called on shutdown | ||
| void | Optional overload to set callbacks on preview, e.g. to visualize results; called after preview is created. | ||
| void | Overload to initialize any added properties in subclasses; called during setup |
Overridden from UMultiSelectionMeshEditingTool
| Type | Name | Description | |
|---|---|---|---|
| void | OnShutdown
(
EToolShutdownType ShutdownType |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| void | OnPropertyModified
(
UObject* PropertySet, |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes |
Overridden from IDynamicMeshOperatorFactory
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< UE::Geometry::FDynamicMeshOperator > | IDynamicMeshOperatorFactory API. |