polygons-to-obj

0.1.6 • Public • Published

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);

Package Sidebar

Install

npm i polygons-to-obj

Weekly Downloads

0

Version

0.1.6

License

MIT

Last publish

Collaborators

  • bcamper
  • robhawkes