use super::*;
#[derive(Clone, Copy, Data, Debug, Default, PartialEq)]
pub(crate) struct QuadricErrorMatrix {
#[get(type(copy))]
pub(crate) a00: f32,
#[get(type(copy))]
pub(crate) a01: f32,
#[get(type(copy))]
pub(crate) a02: f32,
#[get(type(copy))]
pub(crate) a03: f32,
#[get(type(copy))]
pub(crate) a11: f32,
#[get(type(copy))]
pub(crate) a12: f32,
#[get(type(copy))]
pub(crate) a13: f32,
#[get(type(copy))]
pub(crate) a22: f32,
#[get(type(copy))]
pub(crate) a23: f32,
#[get(type(copy))]
pub(crate) a33: f32,
}
#[derive(Clone, Copy, Data, Debug)]
pub(crate) struct DecimationVertex {
#[get(type(copy))]
pub(crate) position: Vec3,
#[get(type(copy))]
pub(crate) normal: Vec3,
#[get(type(copy))]
pub(crate) uv0: [f32; 2],
#[get(type(copy))]
pub(crate) uv1: [f32; 2],
#[get(type(copy))]
pub(crate) color: [f32; 4],
#[get(type(copy))]
pub(crate) flags: u32,
#[get(type(copy))]
pub(crate) quadric: QuadricErrorMatrix,
#[get(type(copy))]
pub(crate) version: u32,
#[get(type(copy))]
pub(crate) alive: bool,
}
#[derive(Clone, Copy, Data, Debug)]
pub(crate) struct DecimationTriangle {
#[get(type(copy))]
pub(crate) indices: [u32; 3],
#[get(type(copy))]
pub(crate) material_slot: u16,
#[get(type(copy))]
pub(crate) alive: bool,
}
#[derive(Clone, Copy, Data, Debug, Eq, Ord, PartialEq, PartialOrd)]
pub(crate) struct DecimationCandidate {
#[get(type(copy))]
pub(crate) cost_key: u64,
#[get(type(copy))]
pub(crate) sequence: u64,
#[get(type(copy))]
pub(crate) v0: u32,
#[get(type(copy))]
pub(crate) v1: u32,
#[get(type(copy))]
pub(crate) ver0: u32,
#[get(type(copy))]
pub(crate) ver1: u32,
}
#[derive(Clone, Copy, Data, Debug)]
pub(crate) struct WeldAccumulator {
#[get(type(copy))]
pub(crate) pos_sum: Vec3,
#[get(type(copy))]
pub(crate) normal_sum: Vec3,
#[get(type(copy))]
pub(crate) uv0_sum: [f32; 2],
#[get(type(copy))]
pub(crate) uv1_sum: [f32; 2],
#[get(type(copy))]
pub(crate) color_sum: [f32; 4],
#[get(type(copy))]
pub(crate) flags: u32,
#[get(type(copy))]
pub(crate) anchor: Vec3,
#[get(type(copy))]
pub(crate) count: u32,
}