almost working compound_mesh