Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

csg-to-mesh

ahdinosaur21ISC1.0.2

convert a csg.js model to a simplicial complex mesh

csg, mesh, 3d, scad, cad

readme

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