new CMesh that allows to set pointer to data directly