Packageaway3d.core.base
Classpublic class BaseMeshElement
InheritanceBaseMeshElement Inheritance flash.events.EventDispatcher
ImplementsIMeshElement
SubclassesFace, Segment

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

Public Properties
 PropertyDefined by
  maxX : Number
[read-only] Returns the maximum x value of the 3d element
BaseMeshElement
  maxY : Number
[read-only] Returns the minimum y value of the 3d element
BaseMeshElement
  maxZ : Number
[read-only] Returns the minimum z value of the 3d element
BaseMeshElement
  minX : Number
[read-only] Returns the minimum x value of the 3d element
BaseMeshElement
  minY : Number
[read-only] Returns the maximum y value of the 3d element
BaseMeshElement
  minZ : Number
[read-only] Returns the maximum z value of the 3d element
BaseMeshElement
  radius2 : Number
[read-only] Returns the squared bounding radius of the 3d element
BaseMeshElement
  vertices : Array
[read-only] Returns an array of vertex objects that make up the 3d element.
BaseMeshElement
  visible : Boolean
Defines whether the 3d element is visible in the scene.
BaseMeshElement
Public Methods
 MethodDefined by
  
addOnVertexChange(listener:Function):void
Default method for adding a vertexchanged event listener
BaseMeshElement
  
addOnVertexValueChange(listener:Function):void
Default method for adding a vertexvaluechanged event listener
BaseMeshElement
  
addOnVisibleChange(listener:Function):void
Default method for adding a visiblechanged event listener
BaseMeshElement
  
removeOnVertexChange(listener:Function):void
Default method for removing a vertexchanged event listener
BaseMeshElement
  
removeOnVertexValueChange(listener:Function):void
Default method for removing a vertexvaluechanged event listener
BaseMeshElement
  
removeOnVisibleChange(listener:Function):void
Default method for removing a visiblechanged event listener
BaseMeshElement
Events
 EventSummaryDefined by
   Dispatched when the vertex of a 3d element changes.BaseMeshElement
   Dispatched when the vertex value of a 3d element changes.BaseMeshElement
   Dispatched when the visiblity of a 3d element changes.BaseMeshElement
Property detail
maxXproperty
maxX:Number  [read-only]

Returns the maximum x value of the 3d element

Implementation
    public function get maxX():Number
maxYproperty 
maxY:Number  [read-only]

Returns the minimum y value of the 3d element

Implementation
    public function get maxY():Number
maxZproperty 
maxZ:Number  [read-only]

Returns the minimum z value of the 3d element

Implementation
    public function get maxZ():Number
minXproperty 
minX:Number  [read-only]

Returns the minimum x value of the 3d element

Implementation
    public function get minX():Number
minYproperty 
minY:Number  [read-only]

Returns the maximum y value of the 3d element

Implementation
    public function get minY():Number
minZproperty 
minZ:Number  [read-only]

Returns the maximum z value of the 3d element

Implementation
    public function get minZ():Number
radius2property 
radius2:Number  [read-only]

Returns the squared bounding radius of the 3d element

Implementation
    public function get radius2():Number
verticesproperty 
vertices:Array  [read-only]

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

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

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

Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
Method detail
addOnVertexChange()method
public function addOnVertexChange(listener:Function):void

Default method for adding a vertexchanged event listener

Parameters
listener:Function — The listener function
addOnVertexValueChange()method 
public function addOnVertexValueChange(listener:Function):void

Default method for adding a vertexvaluechanged event listener

Parameters
listener:Function — The listener function
addOnVisibleChange()method 
public function addOnVisibleChange(listener:Function):void

Default method for adding a visiblechanged event listener

Parameters
listener:Function — The listener function
removeOnVertexChange()method 
public function removeOnVertexChange(listener:Function):void

Default method for removing a vertexchanged event listener

Parameters
listener:Function — The listener function
removeOnVertexValueChange()method 
public function removeOnVertexValueChange(listener:Function):void

Default method for removing a vertexvaluechanged event listener

Parameters
listener:Function — The listener function
removeOnVisibleChange()method 
public function removeOnVisibleChange(listener:Function):void

Default method for removing a visiblechanged event listener

Parameters
listener:Function — The listener function
Event detail
vertexchangedevent 
Event object type: away3d.events.MeshElementEvent

Dispatched when the vertex of a 3d element changes.

vertexvaluechangedevent  
Event object type: away3d.events.MeshElementEvent

Dispatched when the vertex value of a 3d element changes.

visiblechangedevent  
Event object type: away3d.events.MeshElementEvent

Dispatched when the visiblity of a 3d element changes.

Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments