Package schrodinger :: Package graphics3d :: Module torus
[hide private]
[frames] | no frames]

Module torus

OpenGL toruses.

The torus module allows creation and drawing of toruses. Clients draw using Group instances not through Torus instances.

Drawing is done in whatever is the current GL rendering context and current GL window. So you must set those prior to drawing. If you are using this with Maestro's drawing callback mechanism you need not worry about the above details. These are handled for you automatically.

Control over the center, radius, color, resolution and opacity of a torus are provided. See the Torus class for more info.

To draw any number of toruses, create the Torus instance and add it to a Group instance. Then invoke the Group's draw() method.

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  TorusCore
Base class for MaestroTorus.
  MaestroTorus
Class to create a 3D torus in Maestro.
Functions [hide private]
 
vector_normalize(X)
 
vector_cross(X, Y)
Returns the cross product of the len 3 vectors X and Y
Variables [hide private]
  version = '$Revision: 1.18 $'
  RESOLUTION_MIN = 2
  RESOLUTION_MAX = 30
  RESOLUTION_DEFAULT_U = 5
  RESOLUTION_DEFAULT_V = 3
hash(x)
  maestro = None
hash(x)
  TRANSPARENCY_DEFAULT = 0.0
  OPACITY_DEFAULT = 1.0
  BOUNDING_BOX_INIT_VALUE = 100000000.0
  EPSILON = 0.0001
  __package__ = 'schrodinger.graphics3d'