Socket
Book a DemoInstallSign in
Socket

ndarray-to-binvox

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ndarray-to-binvox

Dumps an ndarray to a binvox stream

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

ndarray-to-binvox

Exports an ndarray to a binvox stream.

Example

The following example dumps a binvox file to standard out.

var ndarray = require("ndarray")

var x = ndarray(new Uint8Array(8), [2,2,2])
x.set(0, 0, 0, 1)

require("ndarray-to-binvox")(x).pipe(process.stdout)

Install

npm install ndarray-to-binvox

API

require("ndarray-to-binvox")(array[, translate, scale])

Dumps an ndarray to a binvox file.

  • array is a 3D ndarray
  • translate is an optional translation parameter. (Default [0,0,0])
  • scale is an optional scaling parameter. (Default 1.0)

Returns A stream encoding the binvox file.

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

ndarray

FAQs

Package last updated on 10 Jul 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