made Mesh and Data in ws3dinv more flexible and consistent