Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -30,8 +30,9 @@ use crate::vector::Vector; | @@ -30,8 +30,9 @@ use crate::vector::Vector; | ||
| 30 | #[derive(Debug)] | 30 | #[derive(Debug)] |
| 31 | pub struct Polyeder<T> | 31 | pub struct Polyeder<T> |
| 32 | where T: Add + Sub + Neg + Mul + Div + Debug + Copy + Trig { | 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 | pub trait Primitives<T> | 38 | pub trait Primitives<T> |
Please
register
or
login
to post a comment