Calculates the vertices for a polygon with the specified number of vertices
NOTE: This could be a Pure function, but is setup as an impure function to avoid accidental performance issues
WARNING: The number of vertices has a direct impact on performance when generating shapes. I would recommend avoiding anything much above 20 for 3D shapes that will be further manipulated (like a pyramid)
If the shape will be converted into a static mesh, you can use higher numbers, but may experience performance issues while editing the dyn mesh
In
Exec
|
|
Radius
Float (double-precision)
|
The radius of the circle used for calculating the points of the polygon |
Number Of Verts
Integer
|
Number of vertices on the polygon to be calculated |
Out
Exec
|
|
Vertices
Array of Vector 2D Structures
|
Array of the vertices for a polygon with the given number of vertices and radius |