Commit fb45f6ccb34a2de232a9fd23c90893e7753fcdb7

Authored by Georg Hopp
1 parent 58a45aaf

start normal calculation

Showing 1 changed file with 3 additions and 2 deletions
... ... @@ -30,8 +30,9 @@ use crate::vector::Vector;
30 30 #[derive(Debug)]
31 31 pub struct Polyeder<T>
32 32 where T: Add + Sub + Neg + Mul + Div + Debug + Copy + Trig {
33   - points :Vec<Vector<T>>,
34   - faces :Vec<Vec<usize>>,
  33 + points :Vec<Vector<T>>,
  34 + faces :Vec<Vec<usize>>,
  35 + normals :Vec<Vector<T>>,
35 36 }
36 37
37 38 pub trait Primitives<T>
... ...
Please register or login to post a comment