Example 8.9 Class Surface again
This is just another example showing a more complex surface given by
parametric equations.
h := (x,y,z) -> [abs(sin(x)),abs(sin(y)),abs(sin(z))]:
knot := plot::Surface(
[cos(2*u)*cos(u+v),
cos(2*u)*sin(u+v),
sin(2*v)],
u = 0..PI, v = -PI..PI,
Mesh = [80,80],
FillColorFunction = h
):
MyCam := plot::Camera([100,70,50], [0,0,0], PI/150):
plot(knot,MyCam,
Scaling = Constrained,
Axes = None
)
|
|
JavaView Display
Use the mouse pointer to rotate
the graphics. Right click on the picture will open a
menu where we can select rotations, scaling, moving
and a few other options.
More features of this graphics
can be examined using full
JavaView applet >> |
|