How to apply all transformations to an object at low level?
Mesh transform

# transform the mesh using the matrix world
ob.data.transform(ob.matrix_world)
# then reset matrix to identity

ob.matrix_world = Matrix()


Recent answer where I used Mesh.transform Problem with rotating objects by script