Trees | Indices | Help |
|
---|
|
The polyhedron module allows creation and drawing of polyhedra. The body of the polyhedron is composed of faces that are composed of vertices.
Drawing is done in the current OpenGL rendering context and current OpenGL window, so you must set those prior to drawing. If you are using this with Maestro's drawing callback mechanism the context and window are handled automatically.
Control over the vertices, faces, color, and opacity of a box are provided. However, please note that the current implementation does not ensure the passed in vertices and faces will enclose to form a volume. This must be determined in the subclass.
To draw any number of polyhedra, create the Polyhedron instances, add them to a Group instance then invoke the Group's draw() method.
Copyright Schrodinger, LLC. All rights reserved.
|
|||
Polyhedron Class to draw a 3D polyhedron with OpenGL using the current context in whatever is the current drawable (which could be Maestro). |
|||
MaestroPolyhedronCore | |||
MaestroCube Class to draw a 3D cube in Maestro's Workspace. |
|||
Cube This class is now deprecated. |
|||
MaestroTetrahedron Class to draw a 3D tetrahedron in Maestro's Workspace. |
|||
Tetrahedron This class is now deprecated. |
|||
MaestroOctahedron Class to draw a 3D octahedron in Maestro's Workspace. |
|||
Octahedron This class is now deprecated. |
|||
MaestroDodecahedron Class to draw a 3D dodecahedron in Maestro's Workspace. |
|||
Dodecahedron This class is now deprecated. |
|||
MaestroIcosahedron Class to draw a 3D icosahedron in Maestro's Workspace. |
|||
Icosahedron This class is now deprecated. |
|
|||
|
|||
|
|
|||
maestro = None hash(x) |
|||
OPACITY_DEFAULT = 1.0
|
|||
COLOR_DEFAULT =
|
|||
PHI = 1.61803398875
|
|||
MODE_MAESTRO = 0 hash(x) |
|||
MODE_STANDALONE = 1
|
|||
__package__ =
|
|
Takes a set of vertices that have been created around the origin and
translates them to the be centered around the x, y, z coordinates
supplied in
|
Scale a set of vertices.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 00:59:26 2016 | http://epydoc.sourceforge.net |