home *** CD-ROM | disk | FTP | other *** search
- 1000 rem *********************************
- 1010 rem * *
- 1020 rem * ped daten kompressor fuer *
- 1030 rem * files die zu gross sind *
- 1040 rem * und nicht mehr in ped selbst *
- 1050 rem * komprimiert werden koennen *
- 1060 rem * *
- 1070 rem *********************************
- 1080 open14,8,15
- 1090 input"[147]name des zu komprimierenden files ";n$
- 1100 open1,8,2,n$+",s,r"
- 1110 gosub1780:iff<>0then1090
- 1120 input#1,k:input#1,e
- 1130 dimx(e+2),y(e+2),z(e+2)
- 1140 dimxn(e+2),yn(e+2),zn(e+2)
- 1150 dimp1%(k+1),p2%(k+1)
- 1160 forn=1tok+1
- 1170 input#1,p1%(n):input#1,p2%(n)
- 1180 next
- 1190 fori=1toe+1
- 1200 input#1,x(i):input#1,y(i):input#1,z(i):input#1,n
- 1210 next
- 1220 close1
- 1230 gosub1780:iff<>0then1090
- 1240 print"[147]";e+1;k+1
- 1250 print"doppelpunkte"
- 1260 forn=1toe+1
- 1270 print"";n
- 1280 xn(n)=x(n):yn(n)=y(n):zn(n)=z(n)
- 1290 ifx=-9999then1330
- 1300 fors=n+1toe+1
- 1310 if(x(n)=x(s))thenif(y(n)=y(s))thenif(z(n)=z(s))thenx(s)=-9999:y(s)=n:z(s)=0
- 1320 nexts
- 1330 nextn
- 1340 forn=1tok+1
- 1350 ifx(p1%(n))=-9999thenp1%(n)=int(yn(p1%(n)))
- 1360 ifx(p2%(n))=-9999thenp2%(n)=int(yn(p2%(n)))
- 1370 next
- 1380 print"[147]doppellinien"
- 1390 forn=1tok
- 1400 print"";n
- 1410 fors=n+1tok+1
- 1420 if(p1%(n)=p1%(s))and(p2%(n)=p2%(s))thenp1%(s)=-1:p2%(s)=-1
- 1430 if(p1%(n)=p2%(s))and(p2%(n)=p1%(s))thenp1%(s)=-1:p2%(s)=-1
- 1440 next
- 1450 next
- 1460 print"[147]neue punkte und kantenanzahl ermitteln"
- 1470 en=-1
- 1480 fori=1toe+1
- 1490 ifxn(i)<>-9999thenen=en+1
- 1500 next
- 1510 kn=-1
- 1520 fori=1tok+1
- 1530 ifp1%(i)<>-1thenkn=kn+1
- 1540 next
- 1550 print"[147]neues file speichern":print
- 1560 print:print"neue ecken und kanten anzahl :";en;kn
- 1570 ifen<=320orkn<=640then1630
- 1580 print"file noch zu gross fuer ped"
- 1590 print"a[146]brechen oder t[146]rotzdem speichern"
- 1600 poke198,0:wait198,1:getg$
- 1610 ifg$="a"thenclose14:print"[147]":end
- 1620 ifg$<>"t"then1600
- 1630 print:print"gleichnamiges file wird ueberschrieben":print:print
- 1640 input"filename";n$
- 1650 open1,8,2,"@:"+n$+",s,w"
- 1660 gosub1780:iff<>0then1650
- 1670 print#1,kn:print#1,en
- 1680 fori=1tok+1
- 1690 ifp1%(i)<>-1thenprint#1,p1%(i):print#1,p2%(i)
- 1700 next
- 1710 fori=1toe+1
- 1720 ifxn(i)<>-9999thenprint#1,xn(i):print#1,yn(i):print#1,zn(i):print#1,i
- 1730 next
- 1740 close1
- 1750 gosub1780:iff<>0then1650
- 1760 close14:end
- 1770 rem floppyfehlerkanal
- 1780 input#14,f,f$,f1,f2
- 1790 iff=0thenreturn
- 1800 close1
- 1810 print"[147]floppyfehler:"
- 1820 print""f;f$;f1;f2
- 1830 print"nochmal ? (j/n)"
- 1840 poke198,0:wait198,1:getg$
- 1850 ifg$="j"thenreturn
- 1860 ifg$<>"n"then1840
- 1870 print"[147]":close14:end
-