JSPM

alpha-shape

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16746
  • Score
    100M100P100Q186134F
  • License MIT

Any dimensional alpha shape computation

Package Exports

  • alpha-shape

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (alpha-shape) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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