Transform curve into set of points

I want to use convex hull to a 2D geometry. But the convex hull function only takes points as input. How can i turn my curve (ex hexagon or circle or square…) into a set of points

Divide Curve?

Yes, thank you!