Skip to content

Instantly share code, notes, and snippets.

@joonazan
Created November 14, 2015 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joonazan/b2249d8d9c44e3a7bc32 to your computer and use it in GitHub Desktop.
Save joonazan/b2249d8d9c44e3a7bc32 to your computer and use it in GitHub Desktop.
std::vector<unsigned> Skeleton::jointsToRoot(unsigned index){
std::vector<unsigned> result;
while (index = joints_[index].parent != -1){
result.push_back(index);
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment