Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/alpha-shape
Any dimensional alpha shapes
https://github.com/mikolalysenko/alpha-shape
Last synced: about 12 hours ago
JSON representation
Any dimensional alpha shapes
- Host: GitHub
- URL: https://github.com/mikolalysenko/alpha-shape
- Owner: mikolalysenko
- License: mit
- Created: 2015-03-10T00:56:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-10T01:03:20.000Z (almost 10 years ago)
- Last Synced: 2024-12-16T22:34:39.828Z (8 days ago)
- Language: JavaScript
- Homepage: https://mikolalysenko.github.io/alpha-shape
- Size: 148 KB
- Stars: 74
- Watchers: 4
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
alpha-shape
===========
Computes the [alpha shape](http://en.wikipedia.org/wiki/Alpha_shape) of a point set.[Try a demo right now](https://mikolalysenko.github.io/alpha-shape/index.html)
# Example
```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)
```# 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