Packageaway3d.exporters
Classpublic class ObjExporter
InheritanceObjExporter Inheritance flash.events.EventDispatcher

Class ObjExporter generates a string in the WaveFront obj format representing the object3D(s). Paste to a texteditor and save as filename.obj. AIR: there is a dedicated to AIR version available in trunk.f10 with .mtl/sources export.



Public Properties
 PropertyDefined By
  objFile : String
[read-only] Returns the last generated obj file async from events.
ObjExporter
Public Methods
 MethodDefined 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
  
export(object3d:Object3D, righthanded:Boolean = true, scaling:Number = 1):void
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
Property Detail
objFileproperty
objFile:String  [read-only]

Returns the last generated obj file async from events.


Implementation
    public function get objFile():String
Constructor Detail
ObjExporter()Constructor
public function ObjExporter()

Class Obj generates a string in the WaveFront obj format representing the object3D(s).

####INIT####
Method Detail
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