UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::FMeshSelfCut Class Reference

#include <MeshMeshCut.h>

Public Member Functions

 FMeshSelfCut (FDynamicMesh3 *Mesh)
 
EOperationValidationResult Validate ()
 
GEOMETRYCORE_API bool Cut (const MeshIntersection::FIntersectionsQueryResult &Intersections)
 
void ResetOutputs ()
 

Public Attributes

FDynamicMesh3Mesh
 
double SnapTolerance = FMathf::ZeroTolerance * 100.0
 
bool bCutCoplanar = false
 
bool bTrackInsertedVertices = false
 
TArray< int > VertexChains
 

Constructor & Destructor Documentation

◆ FMeshSelfCut()

UE::Geometry::FMeshSelfCut::FMeshSelfCut ( FDynamicMesh3 Mesh)
inline

Member Function Documentation

◆ Cut()

bool FMeshSelfCut::Cut ( const MeshIntersection::FIntersectionsQueryResult Intersections)

Split mesh along the provided intersections

Parameters
IntersectionsA set of mesh intersections, for example as returned by TMeshAABBTree3::FindAllSelfIntersections

◆ ResetOutputs()

void UE::Geometry::FMeshSelfCut::ResetOutputs ( )
inline

◆ Validate()

EOperationValidationResult UE::Geometry::FMeshSelfCut::Validate ( )
inline
Returns
EOperationValidationResult::Ok if we can apply operation, or error code if we cannot

Member Data Documentation

◆ bCutCoplanar

bool UE::Geometry::FMeshSelfCut::bCutCoplanar = false

If true, detect coplanar faces and re-triangulate so that the triangulations match 1:1 (TODO: not implemented!)

◆ bTrackInsertedVertices

bool UE::Geometry::FMeshSelfCut::bTrackInsertedVertices = false

If true, record vertex insertions

◆ Mesh

FDynamicMesh3* UE::Geometry::FMeshSelfCut::Mesh

Mesh to cut – note that FMeshSelfCut::Cut is destructive, so this are an output

◆ SnapTolerance

double UE::Geometry::FMeshSelfCut::SnapTolerance = FMathf::ZeroTolerance * 100.0

Tolerance distance for considering a point to be on a vertex, edge or plane

◆ VertexChains

TArray<int> UE::Geometry::FMeshSelfCut::VertexChains

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

Empty if bTrackInsertedVertices == false


The documentation for this class was generated from the following files: