Class: OBJLoader

OBJLoader

new OBJLoader(pathString) → {Array.<Ayce.Object3D>}

Creates new loader for a wavefront object (*.obj)
Parameters:
Name Type Description
pathString
Source:
Returns:
object
Type
Array.<Ayce.Object3D>

Methods

copyOBJO3D(originO3D) → {Ayce.Object3D}

TODO: description
Parameters:
Name Type Description
originO3D
Source:
Returns:
Type
Ayce.Object3D

createO3DFromOBJ(obj, mtl, texturePath) → {Ayce.Object3D}

Creates Object3D from wavefront (*.obj)
Parameters:
Name Type Description
obj
mtl
texturePath
Source:
Returns:
object3D
Type
Ayce.Object3D

getCorrectIndices(array)

TODO: Description
Parameters:
Name Type Description
array
Source:
Returns:
array

getMtlName(mtlTxt) → {String}

Returns material name
Parameters:
Name Type Description
mtlTxt String
Source:
Returns:
name
Type
String

readMtl(mtlTxt)

Description
Parameters:
Name Type Description
mtlTxt String
Source:
Returns:
mtlContainer

readObj(objTxt)

TODO: Description
Parameters:
Name Type Description
objTxt String
Source:
Returns:
objCollection