Package schrodinger :: Package graphics3d :: Module polyhedron :: Class Dodecahedron
[hide private]
[frames] | no frames]

Class Dodecahedron

      object --+                
               |                
common.Primitive --+            
                   |            
          Polyhedron --+        
                       |        
   MaestroPolyhedronCore --+    
                           |    
         MaestroDodecahedron --+
                               |
                              Dodecahedron

This class is now deprecated. Please use MaestroDodecahedron.

Instance Methods [hide private]
 
__init__(self, *args, **keywords)
Create a polyhedron centered at center.

Inherited from MaestroDodecahedron: getIndices, getVertices

Inherited from MaestroPolyhedronCore: getFaces, updateVertices

Inherited from Polyhedron: setStyle, update

Inherited from Polyhedron (private): _calculateBoundingBox, _draw, _setNormals

Inherited from common.Primitive: __del__, groupHidden, groupShown, hide, isGroupShown, isShown, setEntryID, setGlowColor, setIsGlowing, setRightClickOnGObject, show

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from Polyhedron (private): _glReset, _glSetup

Class Variables [hide private]
Instance Variables [hide private]

Inherited from Polyhedron: faces, normals, vertices

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **keywords)
(Constructor)

 

Create a polyhedron centered at center. Note that one of length, radius, volume is needed to create the shape.

Parameters:
  • center - List of 3 Angstrom values indicating the center coordinate of the tetrahedron.
  • length - Length in Angstroms of each of the edges of the tetrahedron.
  • radius - Circumsphere radius in Angstroms from center of tetrahedron.
  • volume - Volume in cubed Angstroms of the object.
  • color - One of - Color object, Color name (string), or Tuple of (R, G, B) (each 0.0-1.0)
  • opacity - 0.0 (invisible) through 1.0 (opaque). Defaults to 1.0
  • style - LINE or FILL. Default is FILL.
Raises:
  • RuntimeError - If a single option from length, radius, and volume does not have a value.
  • ValueError - If the size parameter (length, radius, or volume) is not a float.
  • NotImplementedError - If the initiating subclass does not have a getVertices or getFaces method.
Overrides: object.__init__
(inherited documentation)