delaunay_triangulation 0.0.3

Library which can compute a two-dimensional delaunay triangulation for a given set of points.

Usage #

import 'package:delaunay_triangulation/delaunay_triangulation.dart';

main() {
  var triangulation = DelaunayTriangulation(<Vertex>{


import 'package:delaunay_triangulation/delaunay_triangulation.dart';
import 'dart:math';

void main() {
  var random = Random();
  var randPoints = List<Vertex>.generate(700, (_) {
    return Vertex(random.nextDouble()*1000, random.nextDouble()*1000);
  var triangulation = DelaunayTriangulation(randPoints);

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  delaunay_triangulation: ^0.0.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:delaunay_triangulation/delaunay_triangulation.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Format lib/src/delaunay.dart.

Run dartfmt to format lib/src/delaunay.dart.

Format lib/src/edge.dart.

Run dartfmt to format lib/src/edge.dart.

Format lib/src/face.dart.

Run dartfmt to format lib/src/face.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/face_collection.dart (Run dartfmt to format lib/src/face_collection.dart.)
  • lib/src/util.dart (Run dartfmt to format lib/src/util.dart.)
  • lib/src/vertex.dart (Run dartfmt to format lib/src/vertex.dart.)

Maintenance issues and suggestions

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
Dev dependencies
pedantic ^1.8.0
test ^1.6.0