Packagecom.mousman.as3.agal.parser.objs
Classpublic class MPolygoneGroup3D
InheritanceMPolygoneGroup3D Inheritance Object
Implements IDestroyable

contains all datas for a polygon group as defined in .obj and .mtl (wavefront) file :



Public Properties
 PropertyDefined By
  id : String
[read-only] id of a polygon group instance
MPolygoneGroup3D
  mtlSet : MMtlSet
mtlSet of a instance of polygon group
MPolygoneGroup3D
  nbVertices : int
number of vertices in an instance of a polygon group
MPolygoneGroup3D
  pGBExportSet : Vector.<MPGBuffersExport>
[read-only] a vector of MPGBuffersExport
MPolygoneGroup3D
  polygonBufferSet : Vector.<MPolygonGroupBuffers>
[read-only] a vector of MPolygonGroupBuffers
MPolygoneGroup3D
  smoothShading : Number
value of the smooth shading for an instance of a polygon group
MPolygoneGroup3D
Public Methods
 MethodDefined By
  
MPolygoneGroup3D(id:String)
Constructor.
MPolygoneGroup3D
  
add a MPGBuffersExport to the polygon group
MPolygoneGroup3D
  
add a MPolygonGroupBuffers to the polygon group
MPolygoneGroup3D
  
destroy():void
MPolygoneGroup3D
Property Detail
idproperty
id:String  [read-only]

id of a polygon group instance


Implementation
    public function get id():String
mtlSetproperty 
mtlSet:MMtlSet

mtlSet of a instance of polygon group


Implementation
    public function get mtlSet():MMtlSet
    public function set mtlSet(value:MMtlSet):void
nbVerticesproperty 
nbVertices:int

number of vertices in an instance of a polygon group


Implementation
    public function get nbVertices():int
    public function set nbVertices(value:int):void
pGBExportSetproperty 
pGBExportSet:Vector.<MPGBuffersExport>  [read-only]

a vector of MPGBuffersExport


Implementation
    public function get pGBExportSet():Vector.<MPGBuffersExport>
polygonBufferSetproperty 
polygonBufferSet:Vector.<MPolygonGroupBuffers>  [read-only]

a vector of MPolygonGroupBuffers


Implementation
    public function get polygonBufferSet():Vector.<MPolygonGroupBuffers>
smoothShadingproperty 
smoothShading:Number

value of the smooth shading for an instance of a polygon group


Implementation
    public function get smoothShading():Number
    public function set smoothShading(value:Number):void
Constructor Detail
MPolygoneGroup3D()Constructor
public function MPolygoneGroup3D(id:String)

Constructor. Creates a new MPolygoneGroup3D instance.

Parameters
id:String — : String.

Id given to an instance of MPolygoneGroup3D

Method Detail
addPGBExport()method
public function addPGBExport(pBuffers:MPGBuffersExport):void

add a MPGBuffersExport to the polygon group

Parameters

pBuffers:MPGBuffersExport — : MPGBuffersExport.

an instance of MPolygonGroupBuffers to be added to the polygon group

addPolygonBuffers()method 
public function addPolygonBuffers(pBuffers:MPolygonGroupBuffers):void

add a MPolygonGroupBuffers to the polygon group

Parameters

pBuffers:MPolygonGroupBuffers — : MPolygonGroupBuffers.

an instance of MPolygonGroupBuffers to be added to the polygon group

destroy()method 
public function destroy():void