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 string from the wavefront class
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() Init Parameters
Method detail
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

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 = 0.001.
removeOnExportComplete()method 
public function removeOnExportComplete(listener:Function):void

Default method for removing a complete event listener

Parameters
listener:Function — The listener function
Wiki link
Click to go to the wiki page for 'away3d.exporters.ObjExporter'

Code examples

Comments