2 Creates a hierarchy of sphere objects at different relative locations.
9 obj.ParameterBlock.Radius.Value = 5.0
13 def treeOfSpheres(parent, width, xinc, depth, maxdepth):
16 for i
in range(width):
20 treeOfSpheres(n, width, xinc * width, depth + 1, maxdepth)
24 treeOfSpheres(createSphere(), 2, 10, 0, 4)
26 if __name__ ==
"__main__":