Skip to content

Documentation / loaders / parseObj

Function: parseObj()

parseObj(source): ObjDocument

Defined in: libs/loaders/src/obj/parser.ts:328

Parses a Wavefront OBJ document.

Faces are triangulated with a fan. Position, texture-coordinate and normal indices are resolved during parsing, including negative relative indices.

Parameters

source

string

OBJ source text.

Returns

ObjDocument

Parsed OBJ data.

Released under the MIT License.