Package | com.mousman.as3.agal.parser.objs |
Class | public class MCompactObjExportParser |
Inheritance | MCompactObjExportParser ![]() |
Implements | IDestroyable |
Property | Defined By | ||
---|---|---|---|
exportBA : ByteArray [read-only] | MCompactObjExportParser |
Method | Defined 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 |
exportBA | property |
exportBA:ByteArray
[read-only] public function get exportBA():ByteArray
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
ParametersdataIsZxy:Boolean (default = false ) — : WriterStore.Used to resize the object | |
mirrorUV:Boolean (default = true ) — : Boolean.Older versions of 3dsmax use an invalid vertex order |
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.
|