1.0.0 • Published 5 years ago
alphashape-ts v1.0.0
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.
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-shapeAPI
var cells = require('alpha-shape')(alpha, points)
Computes the alpha shape of a point set
alphais alpha parameter for the shapepointsis a set of points in some dimension
Returns The alpha shape of the point set
License
Created by Zeyu Wang. MIT License
Credits
Copyright (C) 2015 Mikola Lysenko. MIT License
1.0.0
5 years ago