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 | ||
---|---|---|---|
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 obj file string
| 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.
public function get objFile():String
ObjExporter | () | Constructor |
public function ObjExporter()
Class Obj generates a string in the WaveFront obj format representing the object3D(s).
addOnExportComplete | () | method |
public function addOnExportComplete(listener:Function):void
Default method for adding a complete event listener The event.data holds the generated obj file string
Parameters
listener: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.
Parameters
object3d: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 = 1.
|
removeOnExportComplete | () | method |
public function removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
Parameters
listener:Function — The listener function
|