Added a constructor to StaticModel which also takes a mesh