voronoid

Rust library for 3D Voronoi tessellations, designed to be used in Rust as well as compiled to WebAssembly (TypeScript interface). It provides a flexible and feature-rich implementation to calculate the individual cells by a clipping procedure based on the generating points, the bounding box and possible walls.

Rust Usage & Documentation

To use the library in a Rust project, simply add it to your Cargo.toml:

cargo add voronoid

Detailed API documentation is available on docs.rs.

WASM Usage & Documentation

The Rust library is designed to directly compile to WASM, using wasm-pack, and is compatible with TypeScript. The package is published on npm and can be installed with the command:

npm install voronoid

The generated package documentation is available here, furthermore the npm page contains an introduction and several basic examples. On top of that there are the interactive examples below, which have links to their script files hosted on github.

Interactive Examples