delaunay-triangulate

WebJar for delaunay-triangulate

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

delaunay-triangulate
Last Version

Last Version

1.1.6
Release Date

Release Date

Type

Type

jar
Description

Description

delaunay-triangulate
WebJar for delaunay-triangulate
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/delaunay-triangulate

Download delaunay-triangulate

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : uniq jar [1.0.1,2)
org.webjars.npm : incremental-convex-hull jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

delaunay-triangulate

Triangulates a set of points into a Delaunay triangulation. This code works in arbitrary dimensions, and both in the server and in the browser.

testling badge

build status

Here are some in browser demos:

Example

var triangulate = require("delaunay-triangulate")

var points = [
  [0, 1],
  [1, 0],
  [1, 1],
  [0, 0],
  [0.5, 0.5]
]

var triangles = triangulate(points)

console.log(triangles)

Install

npm install delaunay-triangulate

API

require("delaunay-triangulate")(points[,pointAtInfinity])

Constructs a Delaunay triangulation over points

  • points is a collection of points in Euclidean space.
  • pointAtInfinity is a flag, which if set adds an extra point at infinity to give the spherical compactification of the triangulation. The index of the point at infinity is -1

Returns A list of cells representing the faces of the triangulation. These are triangles in 2D or tetrahedra in 3D.

Credits

(c) 2013-2014 Mikola Lysenko. MIT License

Versions

Version
1.1.6