Any dimensional alpha shapes
JavaScript
Latest commit 7aa68a2 Mar 10, 2015 @mikolalysenko adding package.json
Permalink
Failed to load latest commit information.
.gitignore . Mar 10, 2015
LICENSE . Mar 10, 2015
README.md demo link Mar 10, 2015
alpha.js . Mar 10, 2015
alpha.png adding image Mar 10, 2015
package.json adding package.json Mar 10, 2015
viewer.js . Mar 10, 2015

README.md

alpha-shape

Computes the alpha shape of a point set.

Try a demo right now

Example

var alphaShape = require('alpha-shape')

var points = []
for(var i=0; i<10; ++i) {
  points.push([Math.random(), Math.random()])
}

var cells = alphaShape(0.1, points)

console.log(cells)

Install

npm i alpha-shape

API

var cells = require('alpha-shape')(alpha, points)

Computes the alpha shape of a point set

  • alpha is alpha parameter for the shape
  • points is a set of points in some dimension

Returns The alpha shape of the point set

License

(c) 2015 Mikola Lysenko. MIT License