You start by cratingcreating a curve around which you build a cylinder and at the end of curve you place a sphere of the same size. If you want a torus just start with a circular curve. Also if you want the steps to be smaller just increase the resample value.