Пример #1
0
 def test_update_with_max_depth(self):
     node = OccupancyOctoNode( 0.2 )
     node.update( (0,0,0), 0.3, (0,0,0), 2, 0 )
     self.assertTrue( node.is_leaf() )
Пример #2
0
 def test_unsplitted_node(self):
     node = OccupancyOctoNode()
     self.assertTrue( node.is_leaf() )
     node._split()
     self.assertFalse( node.is_leaf() )