@@ -0,0 +1,2415 @@
+#!/usr/bin/env python%0Aimport vtk%0A    %0Adef main():%0A    colors = vtk.vtkNamedColors()%0A    # Create hyper tree grid source%0A    source = vtk.vtkHyperTreeGridSource()%0A    source.SetMaximumLevel( 6 )%0A    source.SetGridSize( 3, 3, 2 )%0A    source.SetGridScale( 1.5, 1., .7 )%0A    source.SetDimension( 3 )%0A    source.SetBranchFactor( 4 )%0A    source.SetDescriptor( %22RRR .R. .RR ..R ..R .R.%7CR.......................... ........................... ........................... .............R............. ....RR.RR........R......... .....RRRR.....R.RR......... ........................... ........................... ...........................%7C........................... ........................... ........................... ...RR.RR.......RR.......... ........................... RR......................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ............RRR............%7C........................... ........................... .......RR.................. ........................... ........................... ........................... ........................... ........................... ........................... ........................... ...........................%7C........................... ...........................%22 )%0A    source.Update()%0A    %0A    shrink = vtk.vtkShrinkFilter()%0A    shrink.SetInputConnection(source.GetOutputPort())%0A    shrink.SetShrinkFactor( .8 )%0A    %0A    mapper = vtk.vtkDataSetMapper()%0A    mapper.SetInputConnection(shrink.GetOutputPort())%0A    mapper.ScalarVisibilityOff()%0A    %0A    actor = vtk.vtkActor()%0A    actor.SetMapper(mapper)%0A    actor.GetProperty().SetDiffuseColor(colors.GetColor3d(%22Burlywood%22))%0A    %0A    #Create the RenderWindow, Renderer and both Actors%0A    renderer = vtk.vtkRenderer()%0A    renderWindow = vtk.vtkRenderWindow()%0A    renderWindow.AddRenderer(renderer)%0A    interactor = vtk.vtkRenderWindowInteractor()%0A    interactor.SetRenderWindow(renderWindow)%0A    %0A    renderer.SetBackground(colors.GetColor3d(%22SlateGray%22))%0A    renderer.AddActor(actor)%0A    renderer.ResetCamera()%0A    renderer.GetActiveCamera().Azimuth(150)%0A    renderer.GetActiveCamera().Elevation(30)%0A    renderer.ResetCameraClippingRange()%0A    %0A    renderWindow.SetSize(640, 480)%0A    interactor.Start()%0A%0Aif __name__ == '__main__':%0A    main()%0A

Create HyperTreeGridSource.py