0.0.6 • Published 3 years ago

@wdlea/obj-lib v0.0.6

Weekly downloads
-
License
SEE LICENSE IN li...
Repository
github
Last release
3 years ago

obj-lib

A simple package i made for parsing .obj files. It can read files and return vertices, faces, normals and texture coordinates.

This would be private on NPM if i could make it private

This library CANNOT parse mtllibs

This library can only parse triangulated meshes

Example

import {Model} from "obj-lib"

const A_MODEL = `//3d model`

const m = Model.fromSrc(A_MODEL)

console.log(m.vertices)
console.log(m.normals)
console.log(m.UVs)
console.log(m.indices)
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago