Repository

OBJ

OBJ class gives easy access to some calculations specific to OBJs. It is used to load an external .obj model file.

Static Method Summary

Static Public Methods
public static

parseMTL(model: Object, data: Object): *

parse the MTL file associated to the obj file

public static

parse the OBJ file

Static Public Methods

public static parseMTL(model: Object, data: Object): * source

parse the MTL file associated to the obj file

Params:

NameTypeAttributeDescription
modelObject

The model to attach a texture to

dataObject

The data to parse

Return:

*

public static parseOBJ(data: Object): Mesh source

parse the OBJ file

Params:

NameTypeAttributeDescription
dataObject

The data to parse

Return:

Mesh