Python Script for AddPolygon?

I’m just getting started with rhinoscriptsyntax, and I’m wondering how come there isn’t a function for AddPolygon like there is for AddRectangle and AddEllipse? Am I missing something?

If there isn’t a native function in the library, has anyone written a script for this? (Yes, I am lazy).

Thanks a lot!

Hi @lbrooks,

Use AddPolyline. If the last point matches the first, the polyline will be closed.

– dale

Thanks!