Package | away3d.exporters |
Class | public class ObjExporter |
Inheritance | ObjExporter flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
objFile : String [read-only]
Returns the last generated obj file async from events.
| ObjExporter |
Method | Defined by | ||
---|---|---|---|
ObjExporter
()
Class Obj generates a string in the WaveFront obj format representing the object3D(s).
| ObjExporter | ||
addOnExportComplete(listener:Function):void
Default method for adding a complete event listener
The event.data holds the generated string from the wavefront class
| ObjExporter | ||
Generates a string in the WaveFront obj format representing the object3D(s).
| ObjExporter | ||
removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
| ObjExporter |
objFile | property |
objFile:String
[read-only]Returns the last generated obj file async from events.
Implementation public function get objFile():String
ObjExporter | () | constructor |
public function ObjExporter()
Init Parameters
addOnExportComplete | () | method |
public function addOnExportComplete(listener:Function):void
Default method for adding a complete event listener The event.data holds the generated string from the wavefront class
Parameterslistener:Function — The listener function
|
export | () | method |
public function export(object3d:Object3D, righthanded:Boolean = true, scaling:Number = 1):void
Generates a string in the WaveFront obj format representing the object3D(s). The event onComplete, returns in event.data the generated string.
Parametersobject3d:Object3D — Object3D. The Object3D to be exported to WaveFront obj format.
|
|
righthanded:Boolean (default = true ) — [optional] Boolean. If the model output need to be flipped to righthanded system. Default = true.
|
|
scaling:Number (default = 1 ) — [optional] Number. if the model output needs to be resized. Default = 0.001.
|
removeOnExportComplete | () | method |
public function removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
Parameterslistener:Function — The listener function
|