Skip to content

Commit

Permalink
working on debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rosaliedewinther committed Dec 8, 2024
1 parent f146fc0 commit f848068
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/data_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use bitflags::bitflags;
use bitvec::prelude::*;
use bitvec::slice::IterOnes;
use glam::{IVec3, Vec3};
use std::collections::HashMap;
use std::collections::{BTreeMap, HashMap};
use std::io::{Read, Seek, SeekFrom};

#[derive(thiserror::Error, Debug)]
Expand Down Expand Up @@ -208,7 +208,7 @@ impl GridDescriptor {
}

#[derive(Debug, Default, Clone)]
pub struct Metadata(pub HashMap<String, MetadataValue>);
pub struct Metadata(pub BTreeMap<String, MetadataValue>);

impl Metadata {
pub fn is_half_float(&self) -> bool {
Expand Down Expand Up @@ -295,7 +295,7 @@ impl<ValueTy> Node for Node3<ValueTy> {
pub struct Node4<ValueTy> {
pub child_mask: BitVec<u64, Lsb0>,
pub value_mask: BitVec<u64, Lsb0>,
pub nodes: HashMap<u32, Node3<ValueTy>>,
pub nodes: BTreeMap<u32, Node3<ValueTy>>,
pub data: Vec<ValueTy>,
pub origin: glam::IVec3,
}
Expand All @@ -313,7 +313,7 @@ impl<ValueTy> Node for Node4<ValueTy> {
pub struct Node5<ValueTy> {
pub child_mask: BitVec<u64, Lsb0>,
pub value_mask: BitVec<u64, Lsb0>,
pub nodes: HashMap<u32, Node4<ValueTy>>,
pub nodes: BTreeMap<u32, Node4<ValueTy>>,
pub data: Vec<ValueTy>,
pub origin: glam::IVec3,
}
Expand Down
Loading

0 comments on commit f848068

Please sign in to comment.