constness of mesh write method