triangulation 0.1.0

A collection of triangulation algorithms
Documentation

Rust port of delaunator.

plot

Demo

WASM based browser demo. See wasm-demo/ folder.

Example

use triangulation::{Delaunay, Point};

let points = vec![
    Point::new(10.0, 10.0),
    Point::new(100.0, 20.0),
    Point::new(60.0, 120.0),
    Point::new(80.0, 100.0)
];

let triangulation = Delaunay::new(&points).unwrap();
assert_eq!(&triangulation.triangles, &[3, 0, 2, 3, 1, 0]);

License

This project is licensed like the Rust language itself under either of

at your option.