mesh-to-binvox

0.0.0 • Public • Published

mesh-to-binvox

Converts a mesh into a binvox stream.

Example

//Load Stanford bunny
var bunny = require("bunny")
 
//Voxelize mesh and write to stdout
require("mesh-to-binvox")(bunny.cells, bunny.positions, 0.1).pipe(process.stdout)

require("mesh-to-binvox")(cells, positions, resolution)

Converts a mesh to a binvox file and writes it to a stream.

  • cells are the triangles of the mesh
  • positions are the vertices of the mesh
  • resolution is the resolution of the binvox file to emit

Returns A through stream representing a binvox file containing the mesh

Credits

(c) 2013 Mikola Lysenko. MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    2

Package Sidebar

Install

npm i mesh-to-binvox

Weekly Downloads

2

Version

0.0.0

License

MIT

Last publish

Collaborators

  • mikolalysenko