
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
rle-save-binvox
Advanced tools
Exports a narrowband level set to binvox format.
Here is a simple script showing how you can create a binvox model of a sphere:
var volume = require("rle-sample").solid.dense([-6,-6,-6], [7,7,7], function(x) {
return Math.sqrt(x[0]*x[0]+x[1]*x[1]+x[2]*x[2]) - 5.0;
});
require("rle-save-binvox")(volume).pipe(process.stdout)
This will pipe a binvox file to stdout. Using viewvox to check the result gives the following mesh:
<img src=https://raw.github.com/mikolalysenko/rle-save-binvox/master/images/sphere.png>
npm install rle-save-binvox
require("rle-save-binvox")(volume[, bounds, translate, scale])Returns a stream encoding the binvox file.
volume is an rle narrowband level setbounds is a bound on the range of the level set to save (if not specified is computed using rle-extents)translate is the translation parameter in the binvox filescale is the scale parameter in the binvox file(c) 2013 Mikola Lysenko. MIT License
FAQs
Export to binvox file format
We found that rle-save-binvox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.