View source
class RegularPolygonGeometry
package away3d.primitives
extends CylinderGeometry › PrimitiveBase › Geometry › NamedAssetBase
Available on all platforms
A UV RegularPolygon primitive mesh.
Constructor
new(radius:Float = 100, sides:Int = 16, yUp:Bool = true)
Creates a new RegularPolygon disc object.
Parameters:
radius | The radius of the regular polygon |
|---|---|
sides | Defines the number of sides of the regular polygon. |
yUp | Defines whether the regular polygon should lay on the Y-axis (true) or on the Z-axis (false). |