home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
564a.lha
/
igensurf_v1.0
/
examples
/
wave.cal
< prev
Wrap
Text File
|
1991-09-28
|
515b
|
25 lines
{
wave.cal: Create a wave
igensurf -v -s 30 -t 30 wave.cal | writetddd >wave.obj
}
#name wave
X_Scale : 100.0; { Scale factor for the x axis }
Y_Scale : 100.0; { Scale factor for the y axis }
Z_Scale : 5.0; { Scale factor for the z axis }
X_0 : 30.0; { Wave center }
Y_0 : 30.0;
Wave_Length : 17.0;
x(s,t) = X_Scale * s;
y(s,t) = Y_Scale * t;
z(s,t) = Z_Scale * sin(2 * PI * Dist(s,t, X_0, Y_0) / Wave_Length);
Dist(s,t,X,Y) = sqrt( sqr(x(s,t) - X) + sqr(y(s,t) - Y) );
sqr(X) = X * X;