diff --git a/src/model.rs b/src/model.rs index f6604c7..88daac1 100644 --- a/src/model.rs +++ b/src/model.rs @@ -25,6 +25,11 @@ pub struct VertexId(u32); pub struct IndexedVertexList{ vertices:Vec, } +impl IndexedVertexList{ + pub const fn new(vertices:Vec)->Self{ + Self{vertices} + } +} #[derive(Clone,Copy,Hash,id::Id,PartialEq,Eq)] pub struct PolygonGroupId(u32); pub enum PolygonGroup{