delaunay 0.1.1

Dart native js
Flutter Android iOS web

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 + 3];

  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.

3
likes
100
pub points
32%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

zra@google.com

License

BSD (LICENSE)

More

Packages that depend on delaunay