Packagecom.mousman.as3.agal.parser.objs
Classpublic class MCompactObjExportParser
InheritanceMCompactObjExportParser Inheritance flash.events.EventDispatcher
Implements IDestroyable

creates a set of vertex buffers and index buffers based on a .obj and .mtl file and exports them in a binary file



Public Properties
 PropertyDefined By
  exportBA : ByteArray
[read-only]
MCompactObjExportParser
Public Methods
 MethodDefined By
  
MCompactObjExportParser(dataIsZxy:Boolean = false, mirrorUV:Boolean = true)
Constructor.
MCompactObjExportParser
  
callNext():void
MCompactObjExportParser
  
destroy():void
delete datas
MCompactObjExportParser
  
parse(objfile:String, mtlfile:String = null, scale:Number = 1, writerParams:MBuffersWriterDTO = null):void
Parse the obj and mtl file and create the mesh datas
MCompactObjExportParser
Property Detail
exportBAproperty
exportBA:ByteArray  [read-only]


Implementation
    public function get exportBA():ByteArray
Constructor Detail
MCompactObjExportParser()Constructor
public function MCompactObjExportParser(dataIsZxy:Boolean = false, mirrorUV:Boolean = true)

Constructor. Creates a new MObjParser instance.

After you create the MObjParser instance, call the parse method to create the mesh datas. And then the export method

Parameters
dataIsZxy:Boolean (default = false) — : WriterStore.

Used to resize the object

 
mirrorUV:Boolean (default = true) — : Boolean.

Older versions of 3dsmax use an invalid vertex order

Method Detail
callNext()method
public function callNext():void

destroy()method 
public function destroy():void

delete datas

parse()method 
public function parse(objfile:String, mtlfile:String = null, scale:Number = 1, writerParams:MBuffersWriterDTO = null):void

Parse the obj and mtl file and create the mesh datas

Parameters

objfile:String — : String.

Contains the obj file datas

 
mtlfile:String (default = null) — : String.

Contains the mtl file datas

 
scale:Number (default = 1) — : Number.

Used to resize the 3D model

 
writerParams:MBuffersWriterDTO (default = null) — : used to force color on the mesh.