Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A generic parser for the .obj 3D geometry format.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE.md
README.md
index.js
package.json

README.md

dot-obj experimental

A generic parser for the .obj 3D geometry format. This has been extracted from mrdoob's THREE.OBJLoader class.

dot-obj

Usage

require('dot-obj')(fileString)

Takes a .obj file as a string and returns an array of objects, each with the following properties:

  • positions: the vertex positions for this model.
  • cells: the faces for this model - i.e. and indexed list of positions for each face.
  • normals: a list of vertex normals, if available.
  • uv: a list of vertex UV coordinates, if available.
Something went wrong with that request. Please try again.