Packagecom.mousman.as3.agal.parser.objs
Classpublic class MObjMesh
InheritanceMObjMesh Inheritance Object

contains all datas for a mesh and is the representation of a .obj and .mtl (wavefront) file : A MObjMesh is composed of several MObject3D.



Public Properties
 PropertyDefined By
  mObjects : Vector.<MObject3D>
Vector of MObject3D
MObjMesh
  nbVertices : uint
Number of vertices in a mesh instance
MObjMesh
Public Methods
 MethodDefined By
  
Constructor.
MObjMesh
  
add(mObject:MObject3D):void
add a Mobject3D to the mesh
MObjMesh
  
destroy():void
MObjMesh
Property Detail
mObjectsproperty
mObjects:Vector.<MObject3D>

Vector of MObject3D


Implementation
    public function get mObjects():Vector.<MObject3D>
    public function set mObjects(value:Vector.<MObject3D>):void
nbVerticesproperty 
nbVertices:uint

Number of vertices in a mesh instance


Implementation
    public function get nbVertices():uint
    public function set nbVertices(value:uint):void
Constructor Detail
MObjMesh()Constructor
public function MObjMesh()

Constructor. Creates a new MObjMesh instance.

Method Detail
add()method
public function add(mObject:MObject3D):void

add a Mobject3D to the mesh

Parameters

mObject:MObject3D — : MObject3D.

an instance of MObject3D to be added to the mesh

destroy()method 
public function destroy():void