Table of Contents

Class: BoneHeirarchy urdpyg/milk_skeleton.py

Which bones are parents/children of which other bones. - has bone names, and bone indices into AbsoluteBones/RelativeBones. - GetChildren_names/indices - returns a list of names/indices.

BoneName2BoneNumber_Map - mapping of bone names to a number in the bone index.

Methods   
GetChildren
GetChildren_idx
GetParents
GetRootName
PrintTree
Update
__init__
__str__
_make__bone_name_to_idx
  GetChildren 
GetChildren ( self,  bone_name )

Returns a list of children milk_bone instances.

  GetChildren_idx 
GetChildren_idx ( self,  bone_name )

returns a list of idx for the children of given bone name.

  GetParents 
GetParents ( self,  bone_name )

Returns a list of parents milk_bone instances.

  GetRootName 
GetRootName ( self )

Returns the root bones name.

  PrintTree 
PrintTree (
        self,
        a_bone="ROOT",
        indent_level=0,
        details=0,
        )

Returns a string representation of bones tree. a_bone - a milk_bone instance, or "ROOT". if "ROOT" then we return from the root of the tree.

  Update 
Update ( self,  milk_bones )

Takes a milk_bones variable from the milkshape converter.

  __init__ 
__init__ ( self,  milk_bones )

Takes a milk_bones variable from the milkshape converter.

  __str__ 
__str__ ( self )

  _make__bone_name_to_idx 
_make__bone_name_to_idx ( self,  milk_bones )

returns a dict mapping bone name -> its idx within the list.

Exceptions   
ValueError( "bone allready exists with name, %s" % milk_bone.name )

Table of Contents

This document was automatically generated on Sat Jul 30 12:45:44 2005 by HappyDoc version 2.1