Rigatoni and other tube-shaped pasta are usually made using an extruder. Pasta dough is made by shaping and kneading it, and when it's ready, it's pushed through a special metal hole, like Play-Doh. Different pasta shapes are formed by different extruder patterns and by the length they are cut.