__init__(self,
x0=None,
y0=None,
z0=None,
x1=None,
y1=None,
z1=None,
color=None,
r=None,
g=None,
b=None,
radius=None,
tube_radius=None,
transparency=None,
opacity=1.0,
resolution_u=5,
resolution_v=3)
(Constructor)
|
|
Constructor requires:
x0, y0, z0: coordinate specifying center of torus in Angstroms.
x1, y1, z1: coordinate specifying projected center of torus
in Angstroms.
color: One of:
Color object
Color name (string)
Tuble of (R, G, B) (each 0.0-1.0)
radius: radius of the torus in Angstroms
tube_radius: radius of the tube of the torus in Angstroms
Optional arguments:
opacity: 0.0 (transparent) through 1.0 (opaque)
Defaults to 1.0
resolution_u: 2 to 30, resolution in the U direction of the surface
Defaults to 5
resolution_v: 2 to 30, resolution in the V direction of the surface
Defaults to 3
- Overrides:
object.__init__
|