0.0.6 • Published 2 years ago

@wdlea/obj-lib v0.0.6

Weekly downloads
-
License
SEE LICENSE IN li...
Repository
github
Last release
2 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

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago