import meshlib.mrmeshpy as mrmeshpy
mesh = mrmeshpy.loadMesh("mesh.stl")
faces_to_extrude = mrmeshpy.FaceBitSet()
faces_to_extrude.resize(3, False)
faces_to_extrude.set(mrmeshpy.FaceId(1), True)
faces_to_extrude.set(mrmeshpy.FaceId(2), True)
mrmeshpy.makeDegenerateBandAroundRegion(mesh, faces_to_extrude)
verts_for_move = mrmeshpy.getIncidentVerts(mesh.topology, faces_to_extrude)
for v in range(verts_for_move.size()):
if verts_for_move.test(mrmeshpy.VertId(v)):
mesh.points.vec[v] += mrmeshpy.Vector3f(0.0, 0.0, 1.0)
mesh.invalidateCaches()
mrmeshpy.saveMesh(mesh, "extrudedMesh.stl")