ellipsoid¶
An ellipsoid is a deformed sphere. A prolate ellipsoid looks like a cigar, and an oblate ellipsoid looks like a pancake.
- ellipsoid(pos=vec(0, 0, 0), length=2, height=1, width=3, color=color.cyan)¶
- Parameters:
pos (vector) – Position of center. Default <0,0,0>.
color (vector) – Default color.white
length (scalar) – Magnitude of axis. As created by default, along x-axis.
height (scalar) – By default, y-dimension.
width (scalar) – By default, z-dimension.
size (vector) – Alternative to length, height, width. Default <1,1,1> (a sphere).
axis (vector) – Default <1,0,0>
Attributes used less often:
- ellipsoid(opacity=0.5, shininess=0.2, texture=textures.wood, make_trail=True, canvas=mycanvas, emissive=False)
- Parameters:
opacity (scalar) – Default 1.0; Range 0-1.
shininess (scalar) – Default 0.6; Range 0-1.
emissive (boolean) – Default False. Object glows, losing all shading, if True.
texture (class element or path) – Default None.
visible (boolean) – If False, object is not displayed. Default: True
canvas (object) – Default is
scene
.make_trail (boolean) – If True, object leaves a trail when moved. See Attaching a Trail for more options.
up (vector) – A vector perpendicular to the axis.
group (object) – The group to which this object belongs.