diff --git a/src/mesh.rs b/src/mesh.rs index 79ac9db..0e44b4d 100644 --- a/src/mesh.rs +++ b/src/mesh.rs @@ -3,10 +3,17 @@ use std::collections::HashMap; use rbx_mesh::mesh::{Vertex2, Vertex2Truncated}; use strafesnet_common::{integer::Planar64Vec3,model::{self,ColorId,IndexedVertex,NormalId,PolygonList,PositionId,TextureCoordinateId,VertexId}}; +#[derive(Debug)] pub enum Error{ Planar64Vec3(strafesnet_common::integer::Planar64TryFromFloatError), RbxMesh(rbx_mesh::mesh::Error) } +impl std::fmt::Display for Error{ + fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{ + write!(f,"{self:?}") + } +} +impl std::error::Error for Error{} fn ingest_vertices2< AcquirePosId,