Module polygon
OpenGL polygons.
The polygon module allows creation and drawing of polygons. Clients
draw using Group instances not through Polygon 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 vertices, color, and transparency of a polygon are
provided. See the Polygon class for more info.
To draw any number of polygons create the Polygon instances and add
them to a Group instance (PolygonGroup can be used and is a synonym).
Then invoke the Group's draw() method.
Copyright Schrodinger, LLC. All rights reserved.
|
version = ' $Revision: 1.9 $ '
|
|
maestro = get_maestro()
|
|
BOUNDING_BOX_INIT_VALUE = 100000000.0
|
|
__package__ = ' schrodinger.graphics3d '
|