1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#[derive(Debug, Clone, PartialEq)] pub enum Color { Indexed(u32), Rgba(f32, f32, f32, f32), } #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum VertexField { Position, Normal, Color, Uv, } // #[derive(Debug)] // pub struct Triangle { // points: [WorldPoint; 3], // fields: HashMap<VertexField, Vec<Real>>, // } // impl Triangle { // pub fn voxelize(&self, tree: &mut Octree<Color>) {} // } pub fn main() { // let mut tree: Octree<Color> = Octree::new(); // for tri in [] {} }