Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rle-extents

mikolalysenko26MIT0.0.1

Finds bounding box for rle volume

rle, level, set, voxel, narrowband

readme

rle-extents

Computes a bounding box for a narrowband level set.

Install

npm install rle-extents

Example

//First run length encode a bunny
var bunny = require("bunny")
var bunny_rle = require("rle-rasterize")(bunny.cells, bunny.positions)


//Compute extents of the volume
var extents = require("rle-extents")(bunny_rle)
console.log("lo=", extents[0], "hi=", extents[1])

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