Packageaway3d.core.base
Classpublic class Element
SubclassesFace, Segment, Sprite3D

Basic 3d element object Not intended for direct use - use Segment or Face.

Public Properties
 PropertyDefined by
  commands : Vector
[read-only] Returns an array of drawing command strings that make up the 3d element.
Element
  extra : Object
An optional untyped object that can contain used-defined properties.
Element
  material : Material
Element
  parent : Geometry
Defines the parent 3d object of the segment.
Element
  pathCommands : Array
[read-only] Returns an array of drawing command objects that are used by the face.
Element
  uvs : Vector
[read-only] Returns an array of uv objects that are used by the element.
Element
  vertices : Vector
[read-only] Returns an array of vertex objects that make up the 3d element.
Element
  visible : Boolean
Determines whether the 3d element is visible in the scene.
Element
Protected Properties
 PropertyDefined by
  _commands : Vector
Element
  _lastAddedVertex : Vertex
Element
  _material : Material
Element
  _pathCommands : Array
Element
  _uvs : Vector
Element
  _vertices : Vector
Element
Property detail
_commandsproperty
protected var _commands:Vector
commandsproperty 
commands:Vector  [read-only]

Returns an array of drawing command strings that make up the 3d element.

Implementation
    public function get commands():Vector
extraproperty 
public var extra:Object

An optional untyped object that can contain used-defined properties.

_lastAddedVertexproperty 
protected var _lastAddedVertex:Vertex
_materialproperty 
protected var _material:Material
materialproperty 
material:Material  [read-write]Implementation
    public function get material():Material
    public function set material(value:Material):void
parentproperty 
public var parent:Geometry

Defines the parent 3d object of the segment.

_pathCommandsproperty 
protected var _pathCommands:Array
pathCommandsproperty 
pathCommands:Array  [read-only]

Returns an array of drawing command objects that are used by the face.

Implementation
    public function get pathCommands():Array
_uvsproperty 
protected var _uvs:Vector
uvsproperty 
uvs:Vector  [read-only]

Returns an array of uv objects that are used by the element.

Implementation
    public function get uvs():Vector
_verticesproperty 
protected var _vertices:Vector
verticesproperty 
vertices:Vector  [read-only]

Returns an array of vertex objects that make up the 3d element.

Implementation
    public function get vertices():Vector
visibleproperty 
visible:Boolean  [read-write]

Determines whether the 3d element is visible in the scene.

Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
Wiki link
Click to go to the wiki page for 'away3d.core.base.Element'

Code examples

Comments