Packageaway3d.primitives
Classpublic class RegularPolygonGeometry
InheritanceRegularPolygonGeometry Inheritance CylinderGeometry Inheritance PrimitiveBase Inheritance Geometry Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher

A UV RegularPolygon primitive mesh.



Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : String
[read-only]
Geometry
 InheritedbottomClosed : Boolean
Defines whether the bottom end of the cylinder is closed (true) or open.
CylinderGeometry
 InheritedbottomRadius : Number
The radius of the bottom end of the cylinder.
CylinderGeometry
 Inheritedheight : Number
The radius of the top end of the cylinder.
CylinderGeometry
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : 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
 InheritedsegmentsH : uint
Defines the number of vertical segments that make up the cylinder.
CylinderGeometry
 InheritedsegmentsW : 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
 InheritedsubGeometries : Vector.<ISubGeometry>
[override] [read-only] A collection of SubGeometry objects, each of which contain geometrical data such as vertices, normals, etc.
PrimitiveBase
 InheritedtopClosed : Boolean
Defines whether the top end of the cylinder is closed (true) or open.
CylinderGeometry
 InheritedtopRadius : Number
The radius of the top end of the cylinder.
CylinderGeometry
 InheritedyUp : Boolean
Defines whether the cylinder poles should lay on the Y-axis (true) or on the Z-axis (false).
CylinderGeometry
Protected Properties
 PropertyDefined By
 Inherited_bottomClosed : Boolean
CylinderGeometry
 Inherited_bottomRadius : Number
CylinderGeometry
 Inherited_geomDirty : Boolean = true
PrimitiveBase
 Inherited_height : Number
CylinderGeometry
 Inherited_segmentsH : uint
CylinderGeometry
 Inherited_segmentsW : uint
CylinderGeometry
 Inherited_surfaceClosed : Boolean
CylinderGeometry
 Inherited_topClosed : Boolean
CylinderGeometry
 Inherited_topRadius : Number
CylinderGeometry
 Inherited_uvDirty : Boolean = true
PrimitiveBase
 Inherited_yUp : Boolean
CylinderGeometry
Public Methods
 MethodDefined By
  
RegularPolygonGeometry(radius:Number = 100, sides:uint = 16, yUp:Boolean = true)
Creates a new RegularPolygon disc object.
RegularPolygonGeometry
 Inherited
addSubGeometry(subGeometry:ISubGeometry):void
Adds a new SubGeometry object to the list.
Geometry
 Inherited
applyTransformation(transform:Matrix3D):void
[override]
PrimitiveBase
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
 Inherited
[override] Clones the geometry.
PrimitiveBase
 Inherited
Updates the SubGeometries so all vertex data is represented in different buffers.
Geometry
 Inherited
dispose():void
Clears all resources used by the Geometry object, including SubGeometries.
Geometry
 Inherited
Removes a new SubGeometry object from the list.
Geometry
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
 Inherited
scale(scale:Number):void
[override] Scales the geometry.
PrimitiveBase
 Inherited
scaleUV(scaleU:Number = 1, scaleV:Number = 1):void
[override] Scales the uv coordinates (tiling)
PrimitiveBase
Protected Methods
 MethodDefined By
 Inherited
[override] Builds the primitive's geometry when invalid.
CylinderGeometry
 Inherited
[override] Builds the primitive's uv coordinates when invalid.
CylinderGeometry
 Inherited
Invalidates the primitive's geometry, causing it to be updated when requested.
PrimitiveBase
 Inherited
Invalidates the primitive's uv coordinates, causing them to be updated when requested.
PrimitiveBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
radiusproperty
radius:Number

The radius of the regular polygon.


Implementation
    public function get radius():Number
    public function set radius(value:Number):void
sidesproperty 
sides:uint

The number of sides of the regular polygon.


Implementation
    public function get sides():uint
    public function set sides(value:uint):void
subdivisionsproperty 
subdivisions:uint

The number of subdivisions from the edge to the center of the regular polygon.


Implementation
    public function get subdivisions():uint
    public function set subdivisions(value:uint):void
Constructor Detail
RegularPolygonGeometry()Constructor
public function RegularPolygonGeometry(radius:Number = 100, sides:uint = 16, yUp:Boolean = true)

Creates a new RegularPolygon disc object.

Parameters
radius: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).