Packageaway3d.primitives
Classpublic class CylinderGeometry
InheritanceCylinderGeometry Inheritance PrimitiveBase Inheritance Geometry Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher
Subclasses ConeGeometry, RegularPolygonGeometry

A UV Cylinder primitive mesh.



Public Properties
 PropertyDefined By
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : 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
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
  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
 InheritedsubGeometries : Vector.<SubGeometry>
[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
Protected Properties
 PropertyDefined By
  _bottomClosed : Boolean
CylinderGeometry
  _bottomRadius : Number
CylinderGeometry
 Inherited_geomDirty : Boolean = true
PrimitiveBase
  _height : Number
CylinderGeometry
  _segmentsH : uint
CylinderGeometry
  _segmentsW : uint
CylinderGeometry
  _surfaceClosed : Boolean
CylinderGeometry
  _topClosed : Boolean
CylinderGeometry
  _topRadius : Number
CylinderGeometry
 Inherited_uvDirty : Boolean = true
PrimitiveBase
  _yUp : Boolean
CylinderGeometry
Public Methods
 MethodDefined By
  
CylinderGeometry(topRadius:Number = 50, bottomRadius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, topClosed:Boolean = true, bottomClosed:Boolean = true, surfaceClosed:Boolean = true, yUp:Boolean = true)
Creates a new Cylinder object.
CylinderGeometry
 Inherited
addSubGeometry(subGeometry:SubGeometry):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
dispose():void
Clears all resources used by the Geometry object, including SubGeometries.
Geometry
 Inherited
removeSubGeometry(subGeometry:SubGeometry):void
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
  
[override] Builds the primitive's geometry when invalid.
CylinderGeometry
  
buildUVs(target:SubGeometry):void
[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
_bottomClosedproperty
protected var _bottomClosed:Boolean

_bottomRadiusproperty 
protected var _bottomRadius:Number

_heightproperty 
protected var _height:Number

_segmentsHproperty 
protected var _segmentsH:uint

_segmentsWproperty 
protected var _segmentsW:uint

_surfaceClosedproperty 
protected var _surfaceClosed:Boolean

_topClosedproperty 
protected var _topClosed:Boolean

_topRadiusproperty 
protected var _topRadius:Number

_yUpproperty 
protected var _yUp:Boolean

bottomClosedproperty 
bottomClosed:Boolean

Defines whether the bottom end of the cylinder is closed (true) or open.


Implementation
    public function get bottomClosed():Boolean
    public function set bottomClosed(value:Boolean):void
bottomRadiusproperty 
bottomRadius:Number

The radius of the bottom end of the cylinder.


Implementation
    public function get bottomRadius():Number
    public function set bottomRadius(value:Number):void
heightproperty 
height:Number

The radius of the top end of the cylinder.


Implementation
    public function get height():Number
    public function set height(value:Number):void
segmentsHproperty 
segmentsH:uint

Defines the number of vertical segments that make up the cylinder. Defaults to 1.


Implementation
    public function get segmentsH():uint
    public function set segmentsH(value:uint):void
segmentsWproperty 
segmentsW:uint

Defines the number of horizontal segments that make up the cylinder. Defaults to 16.


Implementation
    public function get segmentsW():uint
    public function set segmentsW(value:uint):void
topClosedproperty 
topClosed:Boolean

Defines whether the top end of the cylinder is closed (true) or open.


Implementation
    public function get topClosed():Boolean
    public function set topClosed(value:Boolean):void
topRadiusproperty 
topRadius:Number

The radius of the top end of the cylinder.


Implementation
    public function get topRadius():Number
    public function set topRadius(value:Number):void
yUpproperty 
yUp:Boolean

Defines whether the cylinder poles should lay on the Y-axis (true) or on the Z-axis (false).


Implementation
    public function get yUp():Boolean
    public function set yUp(value:Boolean):void
Constructor Detail
CylinderGeometry()Constructor
public function CylinderGeometry(topRadius:Number = 50, bottomRadius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, topClosed:Boolean = true, bottomClosed:Boolean = true, surfaceClosed:Boolean = true, yUp:Boolean = true)

Creates a new Cylinder object.

Parameters
topRadius:Number (default = 50) — The radius of the top end of the cylinder.
 
bottomRadius:Number (default = 50) — The radius of the bottom end of the cylinder
 
height:Number (default = 100) — The radius of the bottom end of the cylinder
 
segmentsW:uint (default = 16) — Defines the number of horizontal segments that make up the cylinder. Defaults to 16.
 
segmentsH:uint (default = 1) — Defines the number of vertical segments that make up the cylinder. Defaults to 1.
 
topClosed:Boolean (default = true) — Defines whether the top end of the cylinder is closed (true) or open.
 
bottomClosed:Boolean (default = true) — Defines whether the bottom end of the cylinder is closed (true) or open.
 
surfaceClosed:Boolean (default = true) — Defines whether the cone poles should lay on the Y-axis (true) or on the Z-axis (false).
 
yUp:Boolean (default = true)
Method Detail
buildGeometry()method
override protected function buildGeometry(target:SubGeometry):void

Builds the primitive's geometry when invalid. This method should not be called directly. The calling should be triggered by the invalidateGeometry method (and in turn by updateGeometry).

Parameters

target:SubGeometry

buildUVs()method 
override protected function buildUVs(target:SubGeometry):void

Builds the primitive's uv coordinates when invalid. This method should not be called directly. The calling should be triggered by the invalidateUVs method (and in turn by updateUVs).

Parameters

target:SubGeometry