pub enum PlyError {
Show 16 variants
MissingHeaderEnd,
HeaderUtf8,
InvalidMagic,
UnsupportedFormat,
InvalidCount,
MissingVertexElement,
MissingFaceElement,
UnsupportedElement,
UnsupportedProperty,
PayloadTooShort,
TrailingData,
NonTriangularFace,
NegativeIndex,
IndexOutOfBounds,
NonFiniteVertex,
IntegerOverflow,
}Expand description
Error returned when a binary PLY mesh cannot be parsed as the Bunny mesh profile.
Variants§
MissingHeaderEnd
The end_header marker was not found.
HeaderUtf8
The header is not valid UTF-8 text.
InvalidMagic
The first header line is not ply.
UnsupportedFormat
The format line is absent or is not binary_little_endian 1.0.
InvalidCount
An element count is missing or not a non-negative decimal integer.
MissingVertexElement
The header does not declare the canonical vertex element.
MissingFaceElement
The header does not declare the canonical face element.
UnsupportedElement
The header declares an unsupported non-empty element.
UnsupportedProperty
The header declares an unsupported property layout.
PayloadTooShort
The binary payload is shorter than the declared mesh layout.
TrailingData
The binary payload contains bytes after the declared mesh layout.
NonTriangularFace
A face list entry is not a triangle.
NegativeIndex
A face index is negative and cannot be represented as u32.
IndexOutOfBounds
A face references a vertex outside the parsed vertex range.
NonFiniteVertex
A vertex coordinate is NaN or infinity.
IntegerOverflow
A declared count or offset overflowed usize.
Trait Implementations§
impl Copy for PlyError
impl Eq for PlyError
Source§impl Error for PlyError
impl Error for PlyError
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()