rle-extents
Computes a bounding box for a narrowband level set.
Install
npm install rle-extents
Example
//First run length encode a bunnyvar bunny = var bunny_rle = bunnycells bunnypositions //Compute extents of the volumevar extents = bunny_rleconsole
require("rle-extents")(volume)
Computes a bounding box for a narrowband level set.
volume
is a narrowband level set
Returns A pair of 3D arrays representing the lower and upper bounds on the volume.
Credits
(c) 2013 Mikola Lysenko. MIT License