hullabaloo

Crates.iohullabaloo
lib.rshullabaloo
version0.1.0
created_at2026-01-13 14:55:40.73266+00
updated_at2026-01-13 14:55:40.73266+00
descriptionBackend-agnostic geometry construction utilities.
homepage
repository
max_upload_size
id2040368
size201,191
Keeley Hoek (khoek)

documentation

README

hullabaloo

Backend-agnostic geometry construction utilities for convex polytope families.

Features

  • Prismatoids: Construct vertex sets for drums and related families.
  • Generic over Num: No hidden f64 intermediates---precision preserved throughout.
  • Explicit conversion: Generate vertices, then convert to your backend's matrix type.

Example

use hullabaloo::{Drum, Geometrizable};

let top = vec![vec![0.0, 0.0], vec![1.0, 0.0], vec![0.0, 1.0]];
let bottom = vec![vec![0.0, 0.0], vec![2.0, 0.0], vec![0.0, 2.0]];
let drum = Drum::<f64>::new(top, bottom)?;
let vertices = drum.into_vertices();

assert_eq!(vertices.len(), 6);

License

AGPL-3.0-only. See LICENSE for details.

Commit count: 0

cargo fmt