Mesh.op_BitwiseOr

Mesh BitwiseOr operator

Calculate the union 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 union two meshes into one mesh:

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

See Also