triangulation

Crates.iotriangulation
lib.rstriangulation
version0.1.1
sourcesrc
created_at2019-01-25 18:19:14.036529
updated_at2019-01-27 15:36:20.7949
descriptionA collection of triangulation algorithms
homepage
repositoryhttps://gitlab.com/LeshaInc/triangulation
max_upload_size
id110650
size189,020
(LeshaInc)

documentation

README

Rust port of delaunator.

Demo

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

Documentation

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]);

Performance

plot

Tests performed on Intel Core i5-2500 CPU @ 3.30GHz x 4

License

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

at your option.

Commit count: 42

cargo fmt