Navigation
API > API/Runtime > API/Runtime/GeometryCore
Cut a mesh where it crosses a second mesh resolving all intersections, but not deleting geometry. Optionally resolve intersections mutually for both meshes.
| Name | FMeshMeshCut |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Operations/MeshMeshCut.h |
| Include Path | #include "Operations/MeshMeshCut.h" |
Syntax
class FMeshMeshCut
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshMeshCut
(
FDynamicMesh3* MeshA, |
Operations/MeshMeshCut.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCutCoplanar | bool | If true, detect coplanar faces and re-triangulate so that the triangulations match 1:1 (TODO: not implemented!) | Operations/MeshMeshCut.h | |
| bMutuallyCut | bool | If true, modify both meshes to split at crossing points; otherwise only modify MeshA | Operations/MeshMeshCut.h | |
| bTrackInsertedVertices | bool | If true, record vertex insertions | Operations/MeshMeshCut.h | |
| Mesh | FDynamicMesh3 * | Inputs Meshes to cut note that FMeshMeshCut::Cut is destructive, so these are also outputs | Operations/MeshMeshCut.h | |
| SegmentToChain | TArray< int > | For each intersection segment, where the corresponding elements start in VertexChains. | Operations/MeshMeshCut.h | |
| SnapTolerance | double | Tolerance distance for considering a point to be on a vertex, edge or plane | Operations/MeshMeshCut.h | |
| VertexChains | TArray< int > | Outputs Packed chains of vertex IDs, representing the vertices for each segment in the mesh Packed as the number of vertices in that chain, followed by that many vertex ids, per segment NOT 1:1 w/ segments; some segments may have failed to insert | Operations/MeshMeshCut.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Cut
(
const MeshIntersection::FIntersectionsQueryResult& Intersections |
Split mesh(es) along the provided intersections | Operations/MeshMeshCut.h | |
void ResetOutputs() |
Operations/MeshMeshCut.h | ||
EOperationValidationResult Validate() |
Operations/MeshMeshCut.h |