Packageaway3d.primitives
Classpublic class ConeGeometry
InheritanceConeGeometry Inheritance CylinderGeometry Inheritance PrimitiveBase Inheritance Geometry Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher

A UV Cone 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 bottom end of the cone.
ConeGeometry
 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
 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
  
ConeGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, closed:Boolean = true, yUp:Boolean = true)
Creates a new Cone object.
ConeGeometry
 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 bottom end of the cone.


Implementation
    public function get radius():Number
    public function set radius(value:Number):void
Constructor Detail
ConeGeometry()Constructor
public function ConeGeometry(radius:Number = 50, height:Number = 100, segmentsW:uint = 16, segmentsH:uint = 1, closed:Boolean = true, yUp:Boolean = true)

Creates a new Cone object.

Parameters
radius:Number (default = 50) — The radius of the bottom end of the cone
 
height:Number (default = 100) — The height of the cone
 
segmentsW:uint (default = 16) — Defines the number of horizontal segments that make up the cone. Defaults to 16.
 
segmentsH:uint (default = 1) — Defines the number of vertical segments that make up the cone. Defaults to 1.
 
closed: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)