DOTS Geometry
 
Loading...
Searching...
No Matches
MeshSlicing Class Reference

Static Public Member Functions

static Mesh[] Slice (Mesh mesh, Plane plane, float epsilon=10e-7f, JobHandle dependsOn=default)
 

Member Function Documentation

◆ Slice()

static Mesh[] Slice ( Mesh mesh,
Plane plane,
float epsilon = 10e-7f,
JobHandle dependsOn = default )
static
Parameters
meshMesh to slice - note that only the part that is cut is not allowed to be disconnected or self-intersecting
planeDetermines the cut - if the plane is not intersecting the mesh, null is returned
epsilon
dependsOn
Returns
Two meshes, one for each side of the cutting plane. Each submesh, except the first, corresponds to one created surface polygon during slicing