alpha-shape
Version:
Any dimensional alpha shape computation
41 lines (27 loc) • 758 B
Markdown
alpha-shape
===========
Computes the [alpha shape](http://en.wikipedia.org/wiki/Alpha_shape) of a point set.
[](https://mikolalysenko.github.io/alpha-shape/index.html)
<img src="alpha.png">
```javascript
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)
```
```
npm i alpha-shape
```
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
(c) 2015 Mikola Lysenko. MIT License