Created
November 14, 2015 17:28
-
-
Save joonazan/b2249d8d9c44e3a7bc32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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