Packageaway3dlite.primitives
Classpublic class Skybox6
InheritanceSkybox6 Inheritance AbstractPrimitive Inheritance Mesh Inheritance Object3D Inheritance flash.display.Sprite

Creates a 3d Skybox primitive.



Public Properties
 PropertyDefined By
 InheritedanimationLibrary : AnimationLibrary
Used in the loaders to store all parsed animation data contained in the model.
Object3D
 Inheritedbothsides : Boolean
Determines whether the faces in teh mesh are visible on both sides (true) or just the front side (false).
Mesh
 Inheritedfaces : Vector.<Face>
[override] [read-only] Returns the faces used in the mesh.
AbstractPrimitive
 InheritedgeometryLibrary : GeometryLibrary
Used in loaders to store all parsed geometry data contained in the model.
Object3D
 Inheritedlayer : Sprite
An optional layer sprite used to draw into inseatd of the default view.
Object3D
 Inheritedmaterial : Material
Determines the global material used on the faces in the mesh.
Mesh
 InheritedmaterialLibrary : MaterialLibrary
Used in loaders to store all parsed materials contained in the model.
Object3D
  pixelBorder : int
Defines the texture mapping border in pixels used around each face of the skybox.
Skybox6
 Inheritedposition : Vector3D
[read-only] Returns a 3d vector representing the local position of the 3d object.
Object3D
 Inheritedscene : Scene3D
[read-only] Returns the scene to which the 3d object belongs
Object3D
 InheritedsceneMatrix3D : Matrix3D
[read-only] Returns a 3d matrix representing the absolute transformation of the 3d object in the scene.
Object3D
 InheritedscreenZ : Number
[read-only] Returns the z-sorting position of the 3d object.
Object3D
  segments : int
Defines the number of segments that make up each face of the skybox.
Skybox6
  size : Number
Defines the dimensions of the skybox.
Skybox6
 InheritedsortFaces : Boolean = true
Determines if the faces in the mesh are sorted.
Mesh
 InheritedsortType : String
Determines by which mechanism vertices are sorted.
Mesh
 Inheritedtype : String
Returns the type of 3d object.
Object3D
 Inheritedurl : String
Returns the source url of the 3d object, or the name of the family of generative geometry objects if not loaded from an external source.
Object3D
 Inheritedvertices : Vector.<Number>
[override] [read-only] Returns the 3d vertices used in the mesh.
AbstractPrimitive
 InheritedviewMatrix3D : Matrix3D
[read-only] Returns a 3d matrix representing the absolute transformation of the 3d object in the view.
Object3D
Protected Properties
 PropertyDefined By
 Inherited_vertexNormals : Vector.<Number>
Mesh
Public Methods
 MethodDefined By
  
Skybox6(material:Material = null, size:Number = 40000, segments:int = 4, pixelBorder:int = 1)
Creates a new Skybox6 object.
Skybox6
  
clone(object:Object3D = null):Object3D
[override] Duplicates the skybox6 properties to another Skybox6 object.
Skybox6
 Inherited
lookAt(target:Vector3D, upAxis:Vector3D = null):void
Rotates the 3d object around to face a point defined relative to the local coordinates of the parent ObjectContainer3D.
Object3D
Protected Methods
 MethodDefined By
  
[override] Builds the vertex, face and uv objects that make up the 3d primitive.
Skybox6
 Inherited
copyMatrix3D(m1:Matrix3D, m2:Matrix3D):void
Object3D
 Inherited
AbstractPrimitive
Events
 Event Summary Defined By
 InheritedDispatched when a user presses the left hand mouse button while the cursor is over the 3d object.Object3D
 InheritedDispatched when a user moves the cursor while it is over the 3d object.Object3D
 InheritedDispatched when a user moves the cursor away from the 3d object.Object3D
 InheritedDispatched when a user moves the cursor over the 3d object.Object3D
 InheritedDispatched when a user releases the left hand mouse button while the cursor is over the 3d object.Object3D
 InheritedDispatched when a user rolls out of the 3d object.Object3D
 InheritedDispatched when a user rolls over the 3d object.Object3D
Property Detail
pixelBorderproperty
pixelBorder:int

Defines the texture mapping border in pixels used around each face of the skybox. Defaults to 1


Implementation
    public function get pixelBorder():int
    public function set pixelBorder(value:int):void
segmentsproperty 
segments:int

Defines the number of segments that make up each face of the skybox. Defaults to 4.


Implementation
    public function get segments():int
    public function set segments(value:int):void
sizeproperty 
size:Number

Defines the dimensions of the skybox. Defaults to 40000.


Implementation
    public function get size():Number
    public function set size(value:Number):void
Constructor Detail
Skybox6()Constructor
public function Skybox6(material:Material = null, size:Number = 40000, segments:int = 4, pixelBorder:int = 1)

Creates a new Skybox6 object.

Parameters
material:Material (default = null) — Defines the global material used on the faces in the skybox.
 
size:Number (default = 40000) — Defines the size of the skybox.
 
segments:int (default = 4) — Defines the number of segments that make up each face of the skybox.
 
pixelBorder:int (default = 1) — Defines the texture mapping border in pixels used around each face of the skybox.
####INIT####
Method Detail
buildPrimitive()method
override protected function buildPrimitive():void

Builds the vertex, face and uv objects that make up the 3d primitive.

clone()method 
override public function clone(object:Object3D = null):Object3D

Duplicates the skybox6 properties to another Skybox6 object.

Parameters

object:Object3D (default = null) — [optional] The new object instance into which all properties are copied. The default is Skybox6.

Returns
Object3D — The new object instance with duplicated properties applied.