ndarray-tops

Returns the highest points of a 3d ndarray as a 2d ndarray.

ndarray-tops

Returns the highest points of a 3d ndarray as a 2d ndarray.

var tops = require('ndarray-tops')
var ndarray = require('ndarray')
var size = 32
 
var terrain = ndarray(new Int8Array(size * size * size), [size, size, size])
 
var peaks = tops(terrain)

With npm do:

npm install ndarray-tops

Use browserify to require('ndarray-tops').

  • 0.1.0 - initial release

Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.