pub enum SceneBoundsError {
MissingMesh {
instance: usize,
mesh: usize,
},
NoLevels {
instance: usize,
mesh: usize,
},
PartialVertex {
instance: usize,
mesh: usize,
},
NonFinitePosition {
instance: usize,
vertex: usize,
},
EmptyPart {
instance: usize,
},
Empty,
}Expand description
Why SceneDesc::instance_bounds or SceneDesc::instance_parts refused
a set of instances. Each variant that concerns one instance names its index
in the slice the call was given.
Variants§
MissingMesh
The instance names a mesh past the end of SceneDesc::meshes.
NoLevels
The instance’s mesh is a Geometry::Dag with no levels, so it has no
finest level to bound.
PartialVertex
The mesh’s vertex bytes are not a whole number of vertices.
NonFinitePosition
A vertex of the instance’s mesh, placed by the instance and root
transforms, has a NaN or infinite coordinate.
Fields
EmptyPart
The instance’s mesh has no vertices, so there is no part to bound.
Empty
No instance contributed a vertex — the set is empty, or every mesh in it is.
Trait Implementations§
Source§impl Clone for SceneBoundsError
impl Clone for SceneBoundsError
impl Copy for SceneBoundsError
Source§impl Debug for SceneBoundsError
impl Debug for SceneBoundsError
Source§impl Display for SceneBoundsError
impl Display for SceneBoundsError
impl Eq for SceneBoundsError
Source§impl Error for SceneBoundsError
impl Error for SceneBoundsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SceneBoundsError
impl PartialEq for SceneBoundsError
impl StructuralPartialEq for SceneBoundsError
Auto Trait Implementations§
impl Forget for SceneBoundsError
impl Freeze for SceneBoundsError
impl RefUnwindSafe for SceneBoundsError
impl Send for SceneBoundsError
impl Sync for SceneBoundsError
impl Unpin for SceneBoundsError
impl UnsafeUnpin for SceneBoundsError
impl UnwindSafe for SceneBoundsError
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
Mutably borrows from an owned value. Read more