use-geometric-complex 0.0.6

Geometric complex primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented1 out of 13 items with examples
  • Size
  • Source code size: 6.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 431.22 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-geometry
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-geometric-complex

Geometric complex primitives for the RustUse geometry workspace.

use-geometric-complex is about geometric complexes, cell complexes, and simplicial complexes. It publishes with the Rust library name use_complex. The use-complex package name remains with the sibling git_local/use-math/crates/use-complex complex-number crate.

Example

use use_cell::Cell;
use use_complex::{CellComplex, GeometricComplex, SimplicialComplex};

let cell_complex = CellComplex::new(vec![Cell::new(2, 3).unwrap()]);
let simplicial = SimplicialComplex::new(vec![3]).unwrap();

assert_eq!(cell_complex.cell_count(), 1);
assert_eq!(GeometricComplex::new(2, 1).unwrap().dimension(), 2);
assert_eq!(simplicial.simplex_count(), 1);