rehexed 0.1.1

Adjacency lists for hexasphere's icospheres.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 20.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • OptimisticPeach/rehexed
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • OptimisticPeach

rehexed

This crate is meant to process the output of hexasphere's icosahedron subdivision (aka IcoSphere) into an adjacency list for use in instances where hexagonal tiles are needed.

Such examples include geometry generation, board algorithms etc.

Usage

Generate an icosphere subdivision:

use hexasphere::shapes::IcoSphere;

let sphere = IcoSphere::new(12, |_| {});

Accumulate its indices:

let indices = sphere.get_all_indices();

And then apply the one function:

let adjacency_list = rehexed::rehexed(&indices, sphere.raw_points.len());