All Projects → mourner → delaunator-rs

mourner / delaunator-rs

Licence: ISC license
Fast 2D Delaunay triangulation in Rust. A port of Delaunator.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to delaunator-rs

Laravel Mysql Spatial
MySQL Spatial Data Extension integration with Laravel.
Stars: ✭ 578 (+402.61%)
Mutual labels:  geometry, spatial
GeoJSON4EntityFramework
Create GeoJSON from Entity Framework Spatial Data or WKT
Stars: ✭ 18 (-84.35%)
Mutual labels:  geometry, spatial
Mathnet Spatial
Math.NET Spatial
Stars: ✭ 246 (+113.91%)
Mutual labels:  geometry, spatial
PGS
Processing Geometry Suite
Stars: ✭ 39 (-66.09%)
Mutual labels:  geometry, delaunay-triangulation
Cartopy
Cartopy - a cartographic python library with matplotlib support
Stars: ✭ 857 (+645.22%)
Mutual labels:  geometry, spatial
Doctrine Postgis
Spatial and Geographic Data with PostGIS and Doctrine.
Stars: ✭ 161 (+40%)
Mutual labels:  geometry, spatial
wkb-parser
Well-known binary (WKB) Parser.
Stars: ✭ 69 (-40%)
Mutual labels:  geometry, spatial
alchemy
Generate any a-by-( b + c ) finite rectangle SVG containing potentially Infinitely many a-by-( 2 * b ) finite rectangles animated along a number line of ( ( c - b ) / a )^n scale symmetry.
Stars: ✭ 29 (-74.78%)
Mutual labels:  geometry
curve-shortening-demo
Visualize curve shortening flow in your browser.
Stars: ✭ 19 (-83.48%)
Mutual labels:  geometry
Grass.DirectX
Realistic Grass Rendering using DirectX 11 and a geometry-shader based approach.
Stars: ✭ 56 (-51.3%)
Mutual labels:  geometry
three-strip
Generate strip geometry for three.js. Supports taper, twist, dasharray and uvgen.
Stars: ✭ 15 (-86.96%)
Mutual labels:  geometry
erkir
Երկիր (Erkir) - a C++ library for geodesic and trigonometric calculations
Stars: ✭ 26 (-77.39%)
Mutual labels:  geometry
euclid.js
2D Euclidean geometry classes, utilities, and drawing tools
Stars: ✭ 69 (-40%)
Mutual labels:  geometry
R-Geospatial-Fundamentals
This is the repository for D-Lab's Geospatial Fundamentals in R with sf workshop.
Stars: ✭ 42 (-63.48%)
Mutual labels:  spatial
macuahuitl
The "Macuahuitl" Generative Art Toolbox
Stars: ✭ 68 (-40.87%)
Mutual labels:  geometry
belg
Boltzmann entropy of a landscape gradient
Stars: ✭ 14 (-87.83%)
Mutual labels:  spatial
CGoGN 2
n-dimensional Meshes with Combinatorial Maps
Stars: ✭ 19 (-83.48%)
Mutual labels:  geometry
ows4R
R Interface for OGC Web-Services (OWS)
Stars: ✭ 29 (-74.78%)
Mutual labels:  spatial
Vector-Tile-Spark-Process
🌏 Clip geographic data into MVT files based on Apache Spark
Stars: ✭ 16 (-86.09%)
Mutual labels:  geometry
CAST
Developer Version of the R package CAST: Caret Applications for Spatio-Temporal models
Stars: ✭ 65 (-43.48%)
Mutual labels:  spatial

delaunator-rs

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

delaunator on Crates.io Tests

Documentation

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].