Package | away3d.loaders |
Class | public class Obj |
Inheritance | Obj ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | container : Object3D
3d container object used for storing the parsed 3ds object.
| AbstractParser | |
mesh : Mesh | Obj | ||
![]() | parsedChunks : int
Returns the total number of data chunks parsed
| AbstractParser | |
![]() | totalChunks : int
Returns the total number of data chunks available
| AbstractParser |
Method | Defined by | ||
---|---|---|---|
Obj
(data:*, init:Object = null)
Creates a new
Obj object. | Obj | ||
[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 | ||
![]() |
parseNext():void
Processes the next chunk in the parser
| AbstractParser |
mesh | property |
public var mesh:Mesh
Obj | () | constructor |
public function Obj(data:*, init:Object = null)
Parameters
data:* — The binary data of a loaded file.
|
|
init:Object (default = null ) — The url of the .obj file, required to compose the url mtl adres and be able access the bitmap sources relative to mtl location.
|
mtlPath:String (default = "") | |
scaling:Number (default = 1) |
See also
load | () | method |
public static function load(url:String, init:Object = null):Object3DLoader
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.
|
Object3DLoader —
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.
|