Example 8.13 Class Curve3d
In this example I show how to use Curve3d class. I developed here one of the
Lissajou curves in 3D.
h := (x,y,z)->[abs(sin(x))/2,abs(sin(y))/2,0]:
c1 := plot::Curve3d(
[sin(t)*cos(7*t), sin(t)*sin(7*t), cos(t)],
t = 0..2*PI,
Mesh = 200,
LineWidth = 0.8,
LineColorFunction = h
):
plot(c1,
Scaling = Constrained
)
|
|
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 >> |
|