Packagealternativa.engine3d.loaders
Classpublic class Parser3DS
InheritanceParser3DS Inheritance Parser Inheritance Object

Parser of .3ds files , that are presented as ByteArray.



Public Properties
 PropertyDefined By
 Inheritedanimations : Vector.<AnimationClip>
Array of animations.
Parser
 Inheritedhierarchy : Vector.<Object3D>
List of root objects.
Parser
 Inheritedmaterials : Vector.<ParserMaterial>
List of all materials assigned to objects, that are got after parsing.
Parser
 Inheritedobjects : Vector.<Object3D>
List of objects, that are got after parsing.
Parser
Public Methods
 MethodDefined By
 Inherited
clean():void
Erases all links to external objects.
Parser
 Inherited
getLayerByObject(object:Object3D):String
Returns name of layer for specified object.
Parser
 Inherited
Returns object from array objects by name.
Parser
  
parse(data:ByteArray, texturesBaseURL:String, scale:Number = 1, respectSmoothGroups:Boolean = false):void
Performs parsing.
Parser3DS
Protected Methods
 MethodDefined By
 Inherited
complete(a3d:Object):void
Parser
Method Detail
parse()method
public function parse(data:ByteArray, texturesBaseURL:String, scale:Number = 1, respectSmoothGroups:Boolean = false):void

Performs parsing. Result of parsing is placed in lists are follows objects, parents, materials.

Parameters

data:ByteArrayByteArray correspond to content of a 3ds file.
 
texturesBaseURL:String — Base path to texture files. After parsing diffuseMapURL and opacityMapURL properties gets string values, that consists of texturesBaseURL and file name.
 
scale:Number (default = 1) — Amount to multiply vertex coordinates, objects coordinates and values of objects scaling.
 
respectSmoothGroups:Boolean (default = false) — Flag of accounting of smoothing groups. If flag set to true, then all vertices will duplicated according to smoothing groups, specified for the objects.

See also