0.0.6 • Published 12 months ago

@wdlea/obj-lib v0.0.6

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

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago