use-triangulation 0.0.6

Triangulation primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 7 items with examples
  • Size
  • Source code size: 4.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 369.36 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-triangulation

Triangulation primitives for the RustUse geometry workspace.

use-triangulation stores indexed triangle connectivity and construction method labels.

Example

use use_triangulation::{Triangulation2, TriangulationMethod};

let triangulation = Triangulation2::new(vec![[0, 1, 2], [0, 2, 3]]);

assert_eq!(triangulation.triangle_count(), 2);
assert_eq!(TriangulationMethod::EarClipping.name(), "ear-clipping");