Package | alternativa.engine3d.loaders |
Class | public class Parser3DS |
Inheritance | Parser3DS ![]() ![]() |
.3ds
files , that are presented as ByteArray
.
Method | Defined By | ||
---|---|---|---|
![]() | clean():void
Erases all links to external objects. | Parser | |
![]() | getLayerByObject(object:Object3D):String
Returns name of layer for specified object. | Parser | |
![]() | getObjectByName(name:String):Object3D
Returns object from array objects by name. | Parser | |
parse(data:ByteArray, texturesBaseURL:String, scale:Number = 1, respectSmoothGroups:Boolean = false):void
Performs parsing. | Parser3DS |
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:ByteArray — ByteArray 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