Package | away3d.loaders |
Class | public class Obj |
Inheritance | Obj ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | container : Object3D
3d container object used for storing the parsed 3d object.
| AbstractParser | |
mesh : Mesh | Obj | ||
![]() | parsedChunks : int
Returns the total number of data chunks parsed
| AbstractParser | |
![]() | parseTimeout : int
Defines a timeout period for file parsing (in milliseconds).
| AbstractParser | |
![]() | totalChunks : int
Returns the total number of data chunks available
| AbstractParser |
Method | Defined by | ||
---|---|---|---|
Obj
(init:Object = null)
Creates a new
Obj object. | Obj | ||
![]() |
addOnError(listener:Function):void
Default method for adding a parseError event listener
| AbstractParser | |
![]() |
addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
| AbstractParser | |
![]() |
addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
| AbstractParser | |
[static]
Loads and parses a obj file into a 3d mesh object.
| Obj | ||
[static]
Creates a 3d mesh object from the raw ascii data of a obj file.
| Obj | ||
![]() |
removeOnError(listener:Function):void
Default method for removing a parseError event listener
| AbstractParser | |
![]() |
removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
| AbstractParser | |
![]() |
removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
| AbstractParser |
mesh | property |
public var mesh:Mesh
Obj | () | constructor |
public function Obj(init:Object = null)
Parameters
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
mtlPath:String (default = "") | |
scaling:Number (default = 1) |
See also
load | () | method |
public static function load(url:String, init:Object = null):Loader3D
Loads and parses a obj file into a 3d mesh object.
Parametersurl:String — The url location of the file to load.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
Loader3D —
A 3d loader object that can be used as a placeholder in a scene while the file is loading.
|
parse | () | method |
public static function parse(data:*, init:Object = null):Object3D
Creates a 3d mesh object from the raw ascii data of a obj file.
Parametersdata:* — The ascii data of a loaded file.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
Object3D —
A 3d mesh object representation of the obj file.
|