pub enum Mesh3dError {
Show 14 variants
InvalidVertexNormal {
vertex_index: usize,
},
NormalCountMismatch {
vertex_count: usize,
normal_count: usize,
},
InvalidVertexColor {
vertex_index: usize,
},
VertexColorCountMismatch {
vertex_count: usize,
color_count: usize,
},
InvalidTextureCoordinate,
TextureCoordinateCountMismatch {
vertex_count: usize,
coordinate_count: usize,
},
EmptyVertices,
EmptyGeometry,
InvalidTriangleIndexCount {
index_count: usize,
},
IndexOutOfBounds {
index: u32,
vertex_count: usize,
},
DegenerateTriangle {
triangle: usize,
},
DegenerateDisplayEdge {
start: u32,
end: u32,
},
DuplicateDisplayEdge {
start: u32,
end: u32,
},
AllocationFailed {
requested_bytes: usize,
},
}Expand description
Rejection reason for retained 3D topology.
Variants§
InvalidVertexNormal
A supplied normal is zero or cannot be normalized to a finite direction.
NormalCountMismatch
Explicit normals must match every model vertex, including unused ones.
InvalidVertexColor
A vertex color contains a non-finite or non-normalized channel.
VertexColorCountMismatch
An explicitly supplied color array must cover every model vertex.
Fields
InvalidTextureCoordinate
A U/V component was non-finite or outside normalized 0..=1 bounds.
TextureCoordinateCountMismatch
Textured topology must supply exactly one UV for each model vertex.
Fields
EmptyVertices
A retained mesh requires at least one model-space vertex.
EmptyGeometry
A retained mesh requires at least one triangle or display edge.
InvalidTriangleIndexCount
The triangle index list was not divisible by three.
IndexOutOfBounds
A triangle or display edge referenced a missing vertex.
Fields
DegenerateTriangle
A triangle repeated a vertex or had zero model-space area.
DegenerateDisplayEdge
A display edge used one index twice or referenced coincident vertices.
Fields
DuplicateDisplayEdge
The same undirected display edge appeared more than once.
Fields
AllocationFailed
Temporary validation storage could not be reserved.
Trait Implementations§
Source§impl Clone for Mesh3dError
impl Clone for Mesh3dError
impl Copy for Mesh3dError
Source§impl Debug for Mesh3dError
impl Debug for Mesh3dError
Source§impl Display for Mesh3dError
impl Display for Mesh3dError
impl Eq for Mesh3dError
Source§impl Error for Mesh3dError
impl Error for Mesh3dError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for Mesh3dError
impl PartialEq for Mesh3dError
impl StructuralPartialEq for Mesh3dError
Auto Trait Implementations§
impl Freeze for Mesh3dError
impl RefUnwindSafe for Mesh3dError
impl Send for Mesh3dError
impl Sync for Mesh3dError
impl Unpin for Mesh3dError
impl UnsafeUnpin for Mesh3dError
impl UnwindSafe for Mesh3dError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.