home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
ARCADEA
/
DEMO30
/
MACROS.Z
/
SINE2.d3m
< prev
next >
Wrap
Text File
|
1997-04-15
|
699b
|
41 lines
SYS(36) = 0 'Normal
SETPOINT "Set a point for starting location." 1
POINTVAL X1 Y1 Z1 1
INPUT "Wavelength: ", WAVELEN
IF SYS(999) = 1 THEN GOTO LOOP
INPUT "Amplitude: ", AMP
IF SYS(999) = 1 THEN GOTO LOOP
INPUT "Number of Waves: ", NWAVES
IF SYS(999) = 1 THEN GOTO LOOP
DX = (WAVELEN * 15/360)
X = X1 - DX
SYS(36) = 1 'Silent Mode
FOR J = 0 TO NWAVES - 1
>Curve
{
IF J >= 1 THEN <PointXYZ [X, Y, Z1]
FOR K = 0 TO 359 STEP 15
' Set a point every 15 degrees
X = X + DX
Y = Y1 + SIN(K) * AMP / 2
<PointXYZ [X, Y, Z1]
NEXT
IF J = NWAVES - 1 THEN <PointXYZ [X + DX, Y1, Z1]
}
NEXT
LOOP: