from meshlib import mrmeshpy as mm
mesh = mm.loadMesh("mesh.stl")
box = mesh.computeBoundingBox()
ffDeformer = mm.FreeFormDeformer(mesh.points,mesh.topology.getValidVerts())
ffDeformer.init(mm.Vector3i.diagonal(3),box)
ffDeformer.setRefGridPointPosition(mm.Vector3i(1,1,0),box.center())
ffDeformer.setRefGridPointPosition(mm.Vector3i(1,1,2),box.center())
ffDeformer.setRefGridPointPosition(mm.Vector3i(0,1,1),box.center())
ffDeformer.setRefGridPointPosition(mm.Vector3i(2,1,1),box.center())
ffDeformer.setRefGridPointPosition(mm.Vector3i(1,0,1),box.center())
ffDeformer.setRefGridPointPosition(mm.Vector3i(1,2,1),box.center())
ffDeformer.apply()
mesh.invalidateCaches()
mm.saveMesh(mesh,"deformed_mesh.stl")