stopping for now

This commit is contained in:
Brooks Palin
2024-03-14 19:57:27 -06:00
parent 1ef2afc685
commit 2934c66d53
8 changed files with 52 additions and 20 deletions
+4 -2
View File
@@ -488,10 +488,12 @@ impl<'a> Iterator for Joints<'a> {
return None;
}
Some(Joint {
let next = Some(Joint {
index: *current,
joints: self.joints,
})
});
*current += 1;
next
}
JointIterType::Sequence(ref mut joints) => {
let Some(next) = joints.pop_front() else {
+4
View File
@@ -525,6 +525,10 @@ impl Bvh {
pub fn joints_mut(&mut self) -> JointsMut<'_> {
JointsMut::iter_root(&mut self.joints[..])
}
pub fn joints_len(&self) -> usize {
self.joints.len()
}
/// Returns a `Frames` iterator over the frames of the bvh.
///