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.
|
|
|
vector_cross(X,
Y)
Returns the cross product of the len 3 vectors X and Y |
|
|
|
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 '
|