alpha-complex

WebJar for alpha-complex

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

alpha-complex
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

alpha-complex
WebJar for alpha-complex
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/alpha-complex

Download alpha-complex

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/alpha-complex/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>alpha-complex</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/alpha-complex/
implementation 'org.webjars.npm:alpha-complex:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/alpha-complex/
implementation ("org.webjars.npm:alpha-complex:1.0.0")
'org.webjars.npm:alpha-complex:jar:1.0.0'
<dependency org="org.webjars.npm" name="alpha-complex" rev="1.0.0">
  <artifact name="alpha-complex" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='alpha-complex', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "alpha-complex" % "1.0.0"
[org.webjars.npm/alpha-complex "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : circumradius jar [1.0.0,2)
org.webjars.npm : delaunay-triangulate jar [1.1.6,2)

Project Modules

There are no modules declared in this project.

alpha-complex

Alpha shapes are a generalization of Delaunay triangulations. Given a parameter alpha and a point set, they compute a simplicial complex which covers the point set in simplices whose circum radii are less than 1/alpha.

To see this in action, try out the demo

Example

var alphaComplex = require('alpha-complex')

var points = []
for(var i=0; i<100; ++i) {
  points.push([Math.random(), Math.random()])
}

console.log(alphaComplex(0.1, points))

Install

This module works in node.js/iojs/browserify and supports point sets in any dimension.

npm i alpha-complex

API

var cells = require('alpha-complex')(alpha, points)

Constructs the alpha complex of the given set of points.

  • alpha is the curvature of the alpha complex
  • points is a list of points encoded as arrays

Returns The alpha-complex of the point set.

License

(c) 2015 Mikola Lysenko. MIT License

Versions

Version
1.0.0