pub struct Skeleton {
    bone_map: BoneMap<EdgeIndex>,
    graph: UnGraph<Node, Edge>,
}
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

Solves for the outputs of the skeletal model.

For more info on the algorithm, see crate::skeleton.

Traverses all edges and nodes in the graph in a breadth-first search. Calls f at the start of each traversal.

Creates a new Skeleton from SkeletonConfig. Initially, the skeleton will not have any input trackers or output trackers.

Get the nodes of the graph that have a Some(_) Node::input_pos_g

Trait Implementations

The returned type after indexing.
Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.