Download RigNet/utils/tree_utils.py from ckc99u/Rignet: direct link, hf CLI and curl.
- Browser
- Download file 858 Bytes
-
https://huggingface.co/spaces/ckc99u/Rignet/resolve/main/RigNet/utils/tree_utils.py
- Command line
-
hf download hf://spaces/ckc99u/Rignet/RigNet/utils/tree_utils.py
-
curl -L -o tree_utils.py https://huggingface.co/spaces/ckc99u/Rignet/resolve/main/RigNet/utils/tree_utils.py
858 Bytes
| #------------------------------------------------------------------------------- | |
| # Name: tree_utils.py | |
| # Purpose: classes of node (joint) and tree-node (joint with its parent and children) | |
| # RigNet Copyright 2020 University of Massachusetts | |
| # RigNet is made available under General Public License Version 3 (GPLv3), or under a Commercial License. | |
| # Please see the LICENSE README.txt file in the main directory for more information and instruction on using and licensing RigNet. | |
| #------------------------------------------------------------------------------- | |
| class Node(object): | |
| def __init__(self, name, pos): | |
| self.name = name | |
| self.pos = pos | |
| class TreeNode(Node): | |
| def __init__(self, name, pos): | |
| super(TreeNode, self).__init__(name, pos) | |
| self.children = [] | |
| self.parent = None | |