Crates.io | delaunay |
lib.rs | delaunay |
version | 0.4.0 |
created_at | 2022-03-29 03:49:32.969311+00 |
updated_at | 2025-08-23 05:49:02.896829+00 |
description | A d-dimensional Delaunay triangulation library with float coordinate support |
homepage | https://github.com/acgetchell/delaunay |
repository | https://github.com/acgetchell/delaunay |
max_upload_size | |
id | 558342 |
size | 1,789,839 |
D-dimensional Delaunay triangulations in Rust, inspired by CGAL.
This library implements d-dimensional Delaunay triangulations in Rust. It is inspired by CGAL, which is a C++ library for computational geometry, and Spade, a Rust library that implements 2D Delaunay triangulations, Constrained Delaunay triangulations, and Voronoi diagrams. The goal of this library is to provide a lightweight alternative to CGAL for the Rust ecosystem.
See CHANGELOG.md for details.
This crate was originally maintained at https://github.com/oovm/shape-rs through version 0.1.0
.
The original implementation provided basic Delaunay triangulation functionality.
Starting with version 0.3.4
, maintenance transferred to this repository, which hosts a completely
rewritten d-dimensional implementation focused on computational geometry research applications.
We welcome contributions! Here's a 30-second quickstart:
# Clone and setup
git clone https://github.com/acgetchell/delaunay.git
cd delaunay
# Build and test
cargo build
cargo test
# Format and lint
cargo fmt --all
cargo clippy --all-targets --all-features
# Run examples
./scripts/run_all_examples.sh
# Run a specific example
cargo run --example triangulation_3d_50_points
cargo run --example convex_hull_3d_50_points
The examples/
directory contains several demonstrations:
triangulation_3d_50_points
: Complete 3D Delaunay triangulation with 50 random pointsconvex_hull_3d_50_points
: 3D convex hull extraction and analysis with performance benchmarksboundary_analysis_trait
: Demonstrates boundary facet analysis using the trait systemimplicit_conversion
: Shows coordinate conversion patterns and utilitiestest_circumsphere
: Comprehensive geometric predicate testing suiteFor comprehensive guidelines on development environment setup, testing, benchmarking, performance analysis, and development workflow, please see CONTRIBUTING.md.
This includes information about:
The library's geometric predicates and algorithms are based on established computational geometry literature: