FMeshMeshCut

Cut a mesh where it crosses a second mesh resolving all intersections, but not deleting geometry.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshMeshCut.h

Include

#include "Operations/MeshMeshCut.h"

Syntax

class FMeshMeshCut

Remarks

Cut a mesh where it crosses a second mesh resolving all intersections, but not deleting geometry. Optionally resolve intersections mutually for both meshes.

Variables

Name Description

Public variable

bool

 

bCutCoplanar

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

Public variable

bool

 

bMutuallyCut

If true, modify both meshes to split at crossing points; otherwise only modify MeshA

Public variable

bool

 

bTrackInsertedVertices

If true, record vertex insertions

Public variable

FDynamicMesh3 &...

 

Mesh

InputsMeshes to cut

Public variable

TArray< int >[2...

 

SegmentToChain

For each intersection segment, where the corresponding elements start in VertexChains.

Public variable

double

 

SnapTolerance

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

Public variable

TArray< int >[2...

 

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

Constructors

Name Description

Public function

FMeshMeshCut

(
    FDynamicMesh3* MeshA,
    FDynamicMesh3* MeshB
)

Functions

Name Description

Public function

bool

 

Cut

(
    const MeshIntersection::FIntersecti...
)

Split mesh(es) along the provided intersections

Public function

void

 

ResetOutputs()

Public function

EOperationVa...

 

Validate()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss