You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

rle-core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rle-core - npm Package Compare versions

Comparing version
0.0.7
to
0.0.8
+2
-2
package.json
{
"name": "rle-core",
"version": "0.0.7",
"version": "0.0.8",
"description": "Core tools for working with narrow band level sets in JavaScript",
"main": "src/index.js",
"main": "index.js",
"directories": {

@@ -7,0 +7,0 @@ "test": "test",

@@ -16,3 +16,3 @@ `rle-core`

* [`rle-core`](https://github.com/mikolalysenko/rle-core): Foundational data structures and algorithms
* [`rle-sample`](https://github.com/mikolalysenko/rle-core): Algorithms for sampling level sets
* [`rle-sample`](https://github.com/mikolalysenko/rle-sample): Algorithms for sampling level sets
* [`rle-stencils`](https://github.com/mikolalysenko/rle-stencils): Commonly used stencils

@@ -49,5 +49,13 @@ * [`rle-mesh`](https://github.com/mikolalysenko/rle-mesh): Surface extraction and meshing operations

var mesh = require("rle-mesh")(box);
Demos
=====
If you want to see some examples of what you can do with narrow band level sets, here are a few demos:
API
===
* [Isosurface mesh extraction](http://mikolalysenko.github.com/rle-mesh/examples/simpleMultiphase/www/index.html)
* [Game of Life in 3D](http://mikolalysenko.github.com/rle-core/life3d/index.html)
* [Morphology Demo](http://mikolalysenko.github.com/rle-morphology/example/www/index.html)
`rle-core` API
==============
`rle-core` contains iterators and data structures. There are basically two kinds of RLE volumes, StaticVolumes and DynamicVolumes. Whichever one you pick should depend on the application you have in mind. If your volume is short lived, and you are going to be modifying it a lot, use a DynamicVolume. Accessing StaticVolumes is around 10% more efficient, and they use less memory since they are built on top of typed arrays. However, constructing a StaticVolume is pretty expensive and so don't build one if you are only going to keep it around for a short time.

@@ -54,0 +62,0 @@