Never mind, found an example in the online examples. The one about creating a cylinder between 2 points.