Struct rin::blender::scene_data::Mesh[][src]

pub struct Mesh {
Show fields pub name: String, pub key: Option<String>, pub address: u64, pub mpoly: Vec<MPoly, Global>, pub mloop: Vec<MLoop, Global>, pub mloopuv: Vec<MLoopUV, Global>, pub mloopcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>, pub mface: Vec<MFace, Global>, pub mvert: Vec<MVert, Global>, pub medge: Vec<MEdge, Global>, pub dvert: Vec<MDeformVert, Global>, pub mcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>, pub dweights: Vec<MDeformWeight, Global>, pub loc: [f32; 3], pub size: [f32; 3], pub rot: Option<[f32; 3]>, pub drawflag: Option<i32>, pub texflag: i16, pub flag: Flag, pub smoothresh: f32, pub cd_flag: u8, pub subdiv: u8, pub subdivr: u8, pub subsurftype: u8,
}

Fields

name: Stringkey: Option<String>address: u64mpoly: Vec<MPoly, Global>mloop: Vec<MLoop, Global>mloopuv: Vec<MLoopUV, Global>mloopcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>mface: Vec<MFace, Global>mvert: Vec<MVert, Global>medge: Vec<MEdge, Global>dvert: Vec<MDeformVert, Global>mcol: Vec<AlphaColor<u8, Rgb<u8, Srgb>>, Global>dweights: Vec<MDeformWeight, Global>loc: [f32; 3]size: [f32; 3]rot: Option<[f32; 3]>drawflag: Option<i32>texflag: i16flag: Flagsmoothresh: f32cd_flag: u8subdiv: u8subdivr: u8subsurftype: u8

Implementations

impl Mesh[src]

pub fn parse(blend_mesh: &Object<'_>, version: u32) -> Result<Mesh, Error>[src]

pub fn recalculate_normals(&mut self)[src]

pub fn dimensions(
    &self
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
[src]

pub fn dvert(&self, idx: usize) -> &[MDeformWeight]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn triangulate(&mut self)[src]

pub fn triangulate_no_edges(&mut self)[src]

pub fn subdivide_simple(&mut self, subdivide_uvs: bool)[src]

Trait Implementations

impl Clone for Mesh[src]

impl Debug for Mesh[src]

impl<'de> Deserialize<'de> for Mesh[src]

impl Serialize for Mesh[src]

Auto Trait Implementations

impl RefUnwindSafe for Mesh

impl Send for Mesh

impl Sync for Mesh

impl Unpin for Mesh

impl UnwindSafe for Mesh

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]