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
use crate::elements::view::colchar::ColChar;

#[derive(Debug)]
pub struct Face {
    pub v_indexes: Vec<usize>,
    pub fill_char: ColChar,
}

impl Face {
    pub fn new(v_indexes: Vec<usize>, fill_char: ColChar) -> Self {
        Self {
            v_indexes,
            fill_char,
        }
    }
}

impl Clone for Face {
    fn clone(&self) -> Self {
        Self {
            v_indexes: self.v_indexes.clone(),
            fill_char: self.fill_char,
        }
    }
}