| Package | away3d.primitives |
| Class | public class RegularPolygonGeometry |
| Inheritance | RegularPolygonGeometry CylinderGeometry PrimitiveBase Geometry NamedAssetBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | assetType : String [read-only] | Geometry | |
![]() | bottomClosed : Boolean
Defines whether the bottom end of the cylinder is closed (true) or open. | CylinderGeometry | |
![]() | bottomRadius : Number
The radius of the bottom end of the cylinder. | CylinderGeometry | |
![]() | height : Number
The radius of the top end of the cylinder. | CylinderGeometry | |
![]() | name : String | NamedAssetBase | |
![]() | originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | |
| radius : Number
The radius of the regular polygon. | RegularPolygonGeometry | ||
![]() | segmentsH : uint
Defines the number of vertical segments that make up the cylinder. | CylinderGeometry | |
![]() | segmentsW : uint
Defines the number of horizontal segments that make up the cylinder. | CylinderGeometry | |
| sides : uint
The number of sides of the regular polygon. | RegularPolygonGeometry | ||
| subdivisions : uint
The number of subdivisions from the edge to the center of the regular polygon. | RegularPolygonGeometry | ||
![]() | subGeometries : Vector.<ISubGeometry> [override] [read-only]
A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc. | PrimitiveBase | |
![]() | topClosed : Boolean
Defines whether the top end of the cylinder is closed (true) or open. | CylinderGeometry | |
![]() | topRadius : Number
The radius of the top end of the cylinder. | CylinderGeometry | |
![]() | yUp : Boolean
Defines whether the cylinder poles should lay on the Y-axis (true) or on the Z-axis (false). | CylinderGeometry | |
| Method | Defined By | ||
|---|---|---|---|
RegularPolygonGeometry(radius:Number = 100, sides:uint = 16, yUp:Boolean = true)
Creates a new RegularPolygon disc object. | RegularPolygonGeometry | ||
![]() | addSubGeometry(subGeometry:ISubGeometry):void
Adds a new SubGeometry object to the list. | Geometry | |
![]() | applyTransformation(transform:Matrix3D):void [override]
| PrimitiveBase | |
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | [override]
Clones the geometry. | PrimitiveBase | |
![]() | convertToSeparateBuffers():void
Updates the SubGeometries so all vertex data is represented in different buffers. | Geometry | |
![]() | dispose():void
Clears all resources used by the Geometry object, including SubGeometries. | Geometry | |
![]() | removeSubGeometry(subGeometry:ISubGeometry):void
Removes a new SubGeometry object from the list. | Geometry | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
![]() | scale(scale:Number):void [override]
Scales the geometry. | PrimitiveBase | |
![]() | scaleUV(scaleU:Number = 1, scaleV:Number = 1):void [override]
Scales the uv coordinates (tiling)
| PrimitiveBase | |
| radius | property |
radius:NumberThe radius of the regular polygon.
public function get radius():Number public function set radius(value:Number):void| sides | property |
sides:uintThe number of sides of the regular polygon.
public function get sides():uint public function set sides(value:uint):void| subdivisions | property |
subdivisions:uintThe number of subdivisions from the edge to the center of the regular polygon.
public function get subdivisions():uint public function set subdivisions(value:uint):void| RegularPolygonGeometry | () | Constructor |
public function RegularPolygonGeometry(radius:Number = 100, sides:uint = 16, yUp:Boolean = true)Creates a new RegularPolygon disc object.
Parametersradius:Number (default = 100) — The radius of the regular polygon
| |
sides:uint (default = 16) — Defines the number of sides of the regular polygon.
| |
yUp:Boolean (default = true) — Defines whether the regular polygon should lay on the Y-axis (true) or on the Z-axis (false).
|