csg-to-mesh

1.0.2 • Public • Published

csg-to-mesh

convert a csg.js model to a simplicial complex mesh.

install

with npm, do:

npm i --save csg-to-mesh

usage

var csg = require('csg')
var csgToMesh = require('csg-to-mesh')

var cube = csg.cube({
  center: [0, 0, 0],
  radius: [1, 2, 3]
})
var mesh = csgToMesh(cube)
console.log(JSON.stringify(mesh, null, 2))

license

ISC

Dependents (0)

Package Sidebar

Install

npm i csg-to-mesh

Weekly Downloads

6

Version

1.0.2

License

ISC

Last publish

Collaborators

  • ahdinosaur