Example of Boolean operation
import meshlib.mrmeshpy as mrmeshpy
sphere1 = mrmeshpy.makeUVSphere(1.0, 64, 64)
sphere2 = mrmeshpy.copyMesh(sphere1)
xf = mrmeshpy.AffineXf3f.translation(mrmeshpy.Vector3f(0.7, 0.0, 0.0))
sphere2.transform(xf)
result = mrmeshpy.boolean(sphere1, sphere2, mrmeshpy.BooleanOperation.Intersection)
result_mesh = result.mesh
if not result.valid():
print(result.errorString)
mrmeshpy.saveMesh(result_mesh, "out_boolean.stl")