Geometry of pasta