dot-obj

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i dot-obj

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • hughsk