Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

mesh-to-binvox

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mesh-to-binvox

Converts a mesh to a binvox stream

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

binvox

FAQs

Package last updated on 10 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts