From ec59d251d2c9f3a6e719dc47924b6ea998ad7bc3 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 6 Feb 2024 22:52:55 -0800 Subject: [PATCH] private --- src/model.rs | 5 +++++ 1 file changed, 5 insertions(+) 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{