0.1.6 • Published 9 years ago

polygons-to-obj v0.1.6

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

Polygons to OBJ

Takes polygon and face arrays and returns an OBJ string

Usage

var polygons2obj = require("polygons-to-obj");

var polygons = [[[x,y,z], [...]], [[x,y,z], [...]]];
var faces = [[[v1,v2,v3], [...]], [[v1,v2,v3], [...]]];

var objStr = polygons2obj(polygons, faces);