voxj-codec 0.1.0

Encodes voxj types into .voxj / .voxjz documents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// The encoding used for a voxel-position block.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum PositionEncoding {
    /// One `[x, y, z]` triple per voxel.
    RawJson,

    /// Dense occupancy bitmap over `bounds`, base64-encoded.
    BitmapBase64,

    /// Prefix-sum deltas of each voxel's 3D Hilbert index,
    /// varint+base64-encoded.
    Hilbert,
}