pub enum Geometry {
None,
PerPrimitive,
PerVertex,
}Expand description
What a component’s value holds of its entity’s mesh (Component::GEOMETRY): whether an edit of the primitives
or vertices must carry it along. A component holding geometry of its own (core.mesh, core.mesh_file, a source
model a reader keeps beside it) describes no other component’s primitives: Geometry::None.
Variants§
None
Nothing per primitive or vertex of its entity’s mesh: kept as it is whatever an edit does to them.
PerPrimitive
Something per primitive of its entity’s mesh (a material per primitive, provenance per part): it implements
Component::remap_primitives, goes with the mesh (World::remove_mesh), and an edit that rebuilds the
primitives refuses it when it does not answer.
PerVertex
Something per vertex of its entity’s mesh primitives (and so per primitive): as Geometry::PerPrimitive, and
it implements Component::remap_vertices too.
Implementations§
Trait Implementations§
impl Copy for Geometry
impl Eq for Geometry
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Forget for Geometry
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
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.