polygons-to-obj
v0.1.6
Published
Takes polygon and face arrays and returns an OBJ string
Downloads
8
Readme
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);