delaunay 2.0.0 copy "delaunay: ^2.0.0" to clipboard
delaunay: ^2.0.0 copied to clipboard

Computes the Delaunay triangulation of a set of two dimensional points.

A library for Delaunay triangulation for Dart developers.

This implementation is adapted from the Delaunator JavaScript library.

Usage #

A simple usage example:

Float32List points = Float32List.fromList(<double>[
  143.0, 178.5,
  50.2, -100.7,
  ...
]);
Delaunay delaunay = Delaunay(points);
delaunay.update();
for (int i = 0; i < delaunay.triangles.length; i += 3) {
  int a = delaunay.triangles[i];
  int b = delaunay.triangles[i + 1];
  int c = delaunay.triangles[i + 2];

  double ax = delaunay.coords[2*a];
  double ay = delaunay.coords[2*a + 1];
  ...
}
...
points[0] = 140.0;
delaunay.update();
...

Features and bugs #

Please file feature requests and bugs at the issue tracker.

6
likes
140
pub points
54%
popularity

Publisher

unverified uploader

Computes the Delaunay triangulation of a set of two dimensional points.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on delaunay