Rust ISC

delaunator-rs

Fast 2D Delaunay triangulation in Rust. A port of Delaunator.

M

mourner

Dernière activité 12 mai 2026
mourner/delaunator-rs

254

étoiles

31

forks

5

issues ouvertes

algorithmsdelaunay-triangulationgeometryrustspatial

Ce README est souvent en anglais.

delaunator-rs

An incredibly fast and robust Rust library for Delaunay triangulation of 2D points. A port of Delaunator.

delaunator on Crates.io Tests

Example

use delaunator::{Point, triangulate};

let points = vec![
    Point { x: 0., y: 0. },
    Point { x: 1., y: 0. },
    Point { x: 1., y: 1. },
    Point { x: 0., y: 1. },
];

let result = triangulate(&points);

println!("{:?}", result.triangles); // [0, 2, 1, 0, 3, 2]

Performance

Results for 3.1 GHz Intel Core i7 on a Macbook Pro 15'' (2017):

points time
100 16.478µs
1,000 277.64µs
10,000 3.753ms
100,000 63.627ms
1,000,000 898.78ms
10,000,000 11.857s

Projets similaires

An incredibly fast JavaScript library for Delaunay triangulation of 2D points

JavaScript2dalgorithmcomputational-geometry
Mmapbox
2,6 k étoiles152

Delaunay Triangulations for the Rust Ecosystem

Rustdata-structuresdelaunaydelaunay-triangulation
SStoeoef
339 étoiles60

Fast, parallel 2D Delaunay triangulation using exact integer predicates

C++computational-geometrycpluspluscpp
Mmorishuz
191 étoiles8