Try this, maybe not the most optimized code but it should do
import Rhino.Geometry as rg
# Input curve as an Item Access Polyline
# Output a
pts = []
segments = curve.GetSegments().Count
for i in range(segments+1):
pts.append(curve.PointAt(i))
a = pts
@jordi.arcas and @Adam_M
Thank you both for your answers - that certainly works.
However, I still wonder why there is nothing built in. I mean getting the points of a polyline seems like a standard task to me. So I was hoping that I just overlooked something.