__init__(self,
center,
mode,
length=None,
radius=None,
volume=None,
color=' red ' ,
opacity=1.0,
style=1)
(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__
|