Struct rin::blender::scene_data::model::Model[][src]

pub struct Model { /* fields omitted */ }

Model holds the original blender Mesh for an object with data of Mesh type

It also contains:

The original blender mesh format can specify materials per face this class flattens that into several trimeshes which can be of 2 types:

To check which type the model provides check if submeshes_indices is Some/None respectively

The flattened meshes can also be accessed using submeshes which return an iterator of SubMesh with vertices, indices (if any) and material. In this case when the flattened trimesh is one buffer of vertices + indices the returned vertices in each Submesh will be always the same

For skinning all vertices in the mesh you can access original_vertices() which contains all the vertices in the correct order

Implementations

impl Model[src]

pub fn parse(
    obj: &Object<'_>,
    library_id: LibraryId,
    blend_mesh: &Object<'_>,
    visible: bool,
    scene_data: &mut SceneData,
    libraries: &HashMap<LibraryId, File, RandomState>
) -> Result<Model, Error>
[src]

pub fn skeleton(&self) -> Option<&ObjectId>[src]

pub fn default_action(&self) -> Option<&ObjectId>[src]

pub fn name(&self) -> &ObjectId[src]

pub fn mesh(&self) -> &ObjectId[src]

pub fn rigid_body(&self) -> Option<&RigidBody>[src]

pub fn is_selectable(&self) -> bool[src]

pub fn is_visible(&self) -> bool[src]

pub fn animated_vertices(&self) -> &[Vertex]

Notable traits for &'_ mut [u8]

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

pub fn transformations(&self) -> &Transformations[src]

pub fn vertex_groups(&self) -> &[String]

Notable traits for &'_ mut [u8]

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

pub fn default_group(&self) -> Option<&String>[src]

pub fn custom_properties(&self) -> &[Property]

Notable traits for &'_ mut [u8]

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

pub fn drivers(&self) -> &[FCurve]

Notable traits for &'_ mut [u8]

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

pub fn skeleton_deformflag(&self) -> ArmatureDeformFlag[src]

Trait Implementations

impl Clone for Model[src]

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

impl Serialize for Model[src]

Auto Trait Implementations

impl RefUnwindSafe for Model

impl Send for Model

impl Sync for Model

impl Unpin for Model

impl UnwindSafe for Model

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]