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
use egml::{base, geometry};

#[derive(Debug, Clone, PartialEq)]
pub struct SolitaryVegetationObject {
    id: base::Id,
    name: String,
    lod1_solid: Option<geometry::Solid>,
}

impl SolitaryVegetationObject {
    pub fn new(id: base::Id, name: String) -> Self {
        Self {
            id,
            name,
            lod1_solid: None,
        }
    }

    pub fn lod1_solid(&self) -> &Option<geometry::Solid> {
        &self.lod1_solid
    }

    pub fn set_lod1_solid(&mut self, lod1_solid: Option<geometry::Solid>) {
        self.lod1_solid = lod1_solid;
    }
}