package
Dumps an ndarray to a binvox stream
npm install ndarray-to-binvoxGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Registry package owners.
Exports an ndarray to a binvox stream.
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)npm install ndarray-to-binvoxrequire("ndarray-to-binvox")(array[, translate, scale])Dumps an ndarray to a binvox file.
array is a 3D ndarraytranslate 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.
(c) 2013 Mikola Lysenko. MIT License
Estimated unpacked size across 11 packages.
26.5 kB
Includes dependencies.