alphashape-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

alphashape-ts

Typescript version of the alpha-shape package.

Forked from alpha-shape repo created by Mikola Lysenko.

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

alphashape-ts

Created by Zeyu Wang. MIT License

Credits

alpha-shape

Copyright (C) 2015 Mikola Lysenko. MIT License

Package Sidebar

Install

npm i alphashape-ts

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

52 kB

Total Files

8

Last publish

Collaborators

  • zeyuwang