예제 #1
0
 def dump(self, indent=0):
     """
     \brief Dump the current node
     \param indent current indentation
     """
     Node.dump(self, indent)
     self.get_child().dump(indent + 1)
예제 #2
0
 def dump(self, indent = 0):
     """
     \brief Dump the current node
     \param indent current indentation
     """
     Node.dump(self, indent)
     for child in self.children:
         child.dump(indent + 1)
예제 #3
0
 def dump(self, indent=0):
     """
     \brief Dump the current node
     \param indent current indentation
     """
     if isinstance(self.left, list):
         return "%s\n%s [DATA] %s\n%s" % (Node.dump(
             self, indent), self.tab(indent), self.left_map.values(),
                                          self.right.dump(indent + 1))
     else:
         return "%s\n%s\n%s" % (
             Node.dump(self, indent),
             self.left.dump(indent + 1),
             self.right.dump(indent + 1),
         )
예제 #4
0
 def dump(self, indent=0):
     """
     \brief Dump the current node
     \param indent current indentation
     """
     return "%s\n%s" % (
         Node.dump(self, indent),
         self.child.dump(indent + 1),
     )
예제 #5
0
파일: union.py 프로젝트: onelab-eu/manifold
 def dump(self, indent=0):
     """
     \brief Dump the current node
     \param indent current indentation
     """
     s = []
     s.append(Node.dump(self, indent))
     for child in self.children:
         s.append(child.dump(indent + 1))
     return '\n'.join(s)