Struct skeletal_model::skeleton::Skeleton
source · [−]Expand description
The Skeleton
provides a way of reading, writing, and solving for the pose of
a human wearing FBT.
See the crate::skeleton
module for more information.
Fields
bone_map: BoneMap<EdgeIndex>
graph: UnGraph<Node, Edge>
Implementations
sourceimpl Skeleton
impl Skeleton
sourcepub fn solve(&mut self) -> Result<(), SolveError>
pub fn solve(&mut self) -> Result<(), SolveError>
Solves for the outputs of the skeletal model.
For more info on the algorithm, see crate::skeleton
.
sourceimpl Skeleton
impl Skeleton
sourcepub fn new(config: &SkeletonConfig) -> Self
pub fn new(config: &SkeletonConfig) -> Self
Creates a new Skeleton
from SkeletonConfig
. Initially, the skeleton will
not have any input trackers or output trackers.
sourcefn find_root_nodes(&self) -> impl Iterator<Item = NodeIndex> + '_
fn find_root_nodes(&self) -> impl Iterator<Item = NodeIndex> + '_
Get the nodes of the graph that have a Some(_)
Node::input_pos_g
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Skeleton
impl Send for Skeleton
impl Sync for Skeleton
impl Unpin for Skeleton
impl UnwindSafe for Skeleton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.