Skip to main content

ModelArena

Struct ModelArena 

Source
pub struct ModelArena { /* private fields */ }

Implementations§

Source§

impl ModelArena

Source

pub fn new(bones: Vec<BoneInit>) -> Result<Self, ModelBuildError>

Source

pub fn new_with_ik( bones: Vec<BoneInit>, ik_solvers: Vec<IkSolverInit>, ) -> Result<Self, ModelBuildError>

Source

pub fn new_full( bones: Vec<BoneInit>, ik_solvers: Vec<IkSolverInit>, append_transforms: Vec<AppendTransformInit>, ) -> Result<Self, ModelBuildError>

Source

pub fn new_with_morphs( bones: Vec<BoneInit>, ik_solvers: Vec<IkSolverInit>, append_transforms: Vec<AppendTransformInit>, morph: MorphInit, ) -> Result<Self, ModelBuildError>

Source

pub fn bone_count(&self) -> usize

Source

pub fn parent_index(&self, bone: BoneIndex) -> Option<BoneIndex>

Source

pub fn rest_position(&self, bone: BoneIndex) -> Vec3A

Source

pub fn inverse_bind_matrix(&self, bone: BoneIndex) -> Mat4

Source

pub fn transform_order(&self, bone: BoneIndex) -> i32

Source

pub fn fixed_axis(&self, bone: BoneIndex) -> Option<Vec3A>

Source

pub fn fixed_axis_count(&self) -> usize

Source

pub fn eval_order(&self) -> &[BoneIndex]

Source

pub fn ik_count(&self) -> usize

Source

pub fn ik_solvers(&self) -> &[IkSolver]

Source

pub fn append_transform_index(&self, bone: BoneIndex) -> Option<usize>

Source

pub fn append_transform(&self, append_index: usize) -> &AppendTransform

Source

pub fn append_transforms(&self) -> &[AppendTransform]

Source

pub fn morph_count(&self) -> u32

Source

pub fn vertex_morph_offsets(&self) -> &[VertexMorphOffset]

Source

pub fn vertex_morph_spans(&self) -> &[MorphOffsetSpan]

Source

pub fn bone_morph_offsets(&self) -> &[BoneMorphOffset]

Source

pub fn bone_morph_spans(&self) -> &[MorphOffsetSpan]

Source

pub fn group_morph_offsets(&self) -> &[GroupMorphOffset]

Source

pub fn group_morph_spans(&self) -> &[MorphOffsetSpan]

Trait Implementations§

Source§

impl Debug for ModelArena

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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<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.