Mesh.op_BitwiseAnd

Mesh BitwiseAnd operator

Calculate the intersection of two meshes

public static Mesh operator &(Mesh a, Mesh b)
ParameterTypeDescription
aMeshFirst mesh
bMeshSecond mesh

Return Value

Result mesh

Examples

The following code shows how to calculate the difference of two meshes:

var box1 = new Box(10, 10, 1).ToMesh();
var box2 = new Box(1, 1, 10).ToMesh();
Mesh merged = box1 & box2;

See Also