use super::*;
#[derive(Clone, Data, Debug, New, PartialEq)]
pub struct LSystemRule {
#[get(type(copy))]
pub(crate) predecessor: char,
pub(crate) successor: String,
#[get(type(copy))]
pub(crate) weight: f32,
}
#[derive(Clone, Data, Debug, New, PartialEq)]
pub struct LSystemGrammar {
pub(crate) axiom: String,
pub(crate) rules: Vec<LSystemRule>,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct ProceduralTreeConfig {
#[get(type(copy))]
pub(crate) species: TreeSpecies,
#[get(type(copy))]
pub(crate) iterations: u32,
#[get(type(copy))]
pub(crate) trunk_radius: f32,
#[get(type(copy))]
pub(crate) segment_length: f32,
#[get(type(copy))]
pub(crate) branch_angle_deg: f32,
#[get(type(copy))]
pub(crate) radius_decay: f32,
#[get(type(copy))]
pub(crate) length_decay: f32,
#[get(type(copy))]
pub(crate) radial_segments: u32,
#[get(type(copy))]
pub(crate) leaf_cluster_size: f32,
#[get(type(copy))]
pub(crate) gravity_bias: f32,
}
#[derive(Clone, Data, Debug, PartialEq)]
pub struct ProceduralTreeResult {
pub(crate) combined_mesh: Mesh3D,
pub(crate) branch_mesh: Mesh3D,
pub(crate) foliage_mesh: Mesh3D,
#[get(type(copy))]
pub(crate) branch_segment_count: usize,
#[get(type(copy))]
pub(crate) leaf_cluster_count: usize,
}
#[derive(Clone, Copy, Data, Debug)]
pub(crate) struct TurtleState3D {
#[get(type(copy))]
pub(crate) position: Vec3,
#[get(type(copy))]
pub(crate) heading: Vec3,
#[get(type(copy))]
pub(crate) left: Vec3,
#[get(type(copy))]
pub(crate) up: Vec3,
#[get(type(copy))]
pub(crate) radius: f32,
#[get(type(copy))]
pub(crate) step_length: f32,
#[get(type(copy))]
pub(crate) depth: u32,
}