Socket
Book a DemoInstallSign in
Socket

rle-extents

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

rle-extents

Finds bounding box for rle volume

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

rle

FAQs

Package last updated on 10 Jun 2014

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