Trees | Indices | Help |
|
---|
|
object --+ | common.Primitive --+ | Polyhedron
Class to draw a 3D polyhedron with OpenGL using the current context in whatever is the current drawable (which could be Maestro).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|
|||
vertices A list of each vertex of the polyhedron. |
|||
faces A list containing lists of vertices that define a face of the polyhedron. |
|||
normals The normals for the faces passed in.
|
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
See Also: graphics3d.common.Group documentation |
Private method to set the normals based on the |
Private method to draw the polyhedron with the current settings. This should only be called by PolyhedronGroup instances. |
Calculate a bounding box for the polyhedron. This is used when resizing the molecule in the workspace. Returns two lists of coordinates, each of 6 elements. The first three elements of the first list are the minimum values of the rotated object, the second three elements are the minimum values of the unrotated object. The second list has the corresponding maximum values. |
Update the polyhedron's shape.
See Also: Tetrahedron.updateVertices for an example of usage |
Sets the polyhedron's drawing style.
|
|
verticesA list of each vertex of the polyhedron. These are set during the Polyhedron.update method and taken from the constructor
argument, See Also: Polyhedron.update |
facesA list containing lists of vertices that define a face of the
polyhedron. These are set during the Polyhedron.update method and taken from constructor
argument, See Also: Polyhedron.update |
normalsThe normals for the
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 00:59:55 2016 | http://epydoc.sourceforge.net |