2 Creates a hierarchy of sphere objects at different relative locations.
8 obj.ParameterBlock.Radius.Value = 5.0
11 def treeOfSpheres(parent, width, xinc, depth, maxdepth):
14 for i
in range(width):
18 treeOfSpheres(n, width, xinc * width, depth + 1, maxdepth)
21 treeOfSpheres(createSphere(), 2, 10, 0, 4)
23 if __name__ ==
"__main__":