Dynamic 2D shapes from code

Is there some way to create 2d shapes from code? Lika a set of points connected by line or bezier curves?

Given a polygon defined by a ordered set of points, you can build a mesh from the points. Here is a link to a script:


You cannot use a bezier curve, but you could walk a bezier curve to generate a refined set of points before building a mesh.