copy torus generator from sample