assimp::scene

Struct Mesh

Source
pub struct Mesh<'a>(/* private fields */);
Expand description

Mesh type (incomplete)

Implementations§

Source§

impl<'a> Mesh<'a>

Source

pub fn primitive_types(&self) -> u32

Source

pub fn num_vertices(&self) -> u32

Source

pub fn vertex_iter(&self) -> Vector3DIter<'_>

Source

pub fn get_vertex(&self, id: u32) -> Option<Vector3D>

Source

pub fn normal_iter(&self) -> Vector3DIter<'_>

Source

pub fn get_normal(&self, id: u32) -> Option<Vector3D>

Source

pub fn tangent_iter(&self) -> Vector3DIter<'_>

Source

pub fn get_tangent(&self, id: u32) -> Option<Vector3D>

Source

pub fn bitangent_iter(&self) -> Vector3DIter<'_>

Source

pub fn get_bitangent(&self, id: u32) -> Option<Vector3D>

Source

pub fn vertex_color_iter(&self, set_id: usize) -> Color4DIter<'_>

Source

pub fn get_vertex_color(&self, set_id: usize, id: u32) -> Option<Color4D>

Source

pub fn texture_coords_iter(&self, channel_id: usize) -> Vector3DIter<'_>

Source

pub fn get_texture_coord(&self, channel_id: usize, id: u32) -> Option<Vector3D>

Source

pub fn num_faces(&self) -> u32

Source

pub fn face_iter(&self) -> FaceIter<'_>

Source

pub fn get_face(&self, id: u32) -> Option<Face<'_>>

Source

pub fn num_bones(&self) -> u32

Source

pub fn bone_iter(&self) -> BoneIter<'_>

Source

pub fn get_bone(&self, id: u32) -> Option<Bone<'_>>

Methods from Deref<Target = AiMesh>§

Source

pub fn has_positions(&self) -> bool

Source

pub fn has_faces(&self) -> bool

Source

pub fn has_normals(&self) -> bool

Source

pub fn has_tangents_and_bitangents(&self) -> bool

Source

pub fn has_vertex_colors(&self, index: usize) -> bool

Source

pub fn has_texture_coords(&self, index: usize) -> bool

Source

pub fn get_num_uv_channels(&self) -> usize

Source

pub fn get_num_color_channels(&self) -> usize

Source

pub fn has_bones(&self) -> bool

Trait Implementations§

Source§

impl<'a> Deref for Mesh<'a>

Source§

type Target = AiMesh

The resulting type after dereferencing.
Source§

fn deref<'b>(&'b self) -> &'b AiMesh

Dereferences the value.

Auto Trait Implementations§

§

impl<'a> Freeze for Mesh<'a>

§

impl<'a> RefUnwindSafe for Mesh<'a>

§

impl<'a> !Send for Mesh<'a>

§

impl<'a> !Sync for Mesh<'a>

§

impl<'a> Unpin for Mesh<'a>

§

impl<'a> UnwindSafe for Mesh<'a>

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> 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.