Skip to main content

MeshVisit

Struct MeshVisit 

Source
pub struct MeshVisit<'v> {
    pub node: Option<NodeId>,
    pub mesh: usize,
    pub surface: &'v MeshSurface,
    pub to_frame: Mat4,
}
Expand description

A mesh of a surface layer that visit_meshes found.

Fields§

§node: Option<NodeId>

The node whose layer carries the surface.

§mesh: usize

Which of the layer’s meshes it is: 0 for the owner.

§surface: &'v MeshSurface

The surface as the layer’s modifier gave it, with its own transform.

§to_frame: Mat4

Maps the mesh’s own space to the frame of the layer that the walk started from, through the surface’s own transform.

Auto Trait Implementations§

§

impl<'v> Forget for MeshVisit<'v>

§

impl<'v> Freeze for MeshVisit<'v>

§

impl<'v> Move for MeshVisit<'v>

§

impl<'v> RefUnwindSafe for MeshVisit<'v>

§

impl<'v> Send for MeshVisit<'v>

§

impl<'v> Sync for MeshVisit<'v>

§

impl<'v> Unpin for MeshVisit<'v>

§

impl<'v> UnsafeUnpin for MeshVisit<'v>

§

impl<'v> UnwindSafe for MeshVisit<'v>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.