home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
graphics
/
3dto3d
/
a16.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1998-05-09
|
9KB
|
139 lines
/* COBF by BB -- obfuscated at Sat Mar 21 22:21:00 1998
*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include"cobf.h"
b l344(b);b l326(b);b*l175(l115 l62);b*l366(b*l205,l115 l62);b*l353(
l115 l337,l115 l62);e*l73(e*l330);b l43(b*l205);
l26 s j;l26 j d[3];l26 j l[4][4];b l221(d l36,j l365,j l363,j l362);b
l150(d z,d x);a l294(d z,d x);b l274(d z,d x,d l78);b l280(d z,d x,d
l78);b l276(d z,d x,j l240);j l252(d l36);b l283(d l36);j l287(d z,d x
);b l301(d z,d x,d l78);b l361(d z,d x,d l78);b l368(d z,d x,d l78);c
a l315(d k[3],j l364);j l306(d z,d x);j l358(d z,d x);b l336(d l36,a
l158);b l194(l48*l181,d l36,e l410);b l378(d z,d x,a l72,j l87);b l388
(d z,d x,d l72,j l87);b l259(d l322[3],d l346);b l372(d z,d x,l l45);
b l392(d l87,d l76);s l391(d l176,d l76,c a l72);b l373(l l45);b l402
(l l80,l l86,a l72,j l87);b l390(l l80,l l86,d l72,j l87);b l349(l l80
,l l86,l l220);b l375(l l80,l l86,l l220);j l384(l l80,l l86);b l381(
l l45,d l137,d l122,d l124,d l216);b l285(l l71);b l386(l l71,d l146);
b l374(l l71,d l146);b l369(l l71,d l146);b l389(l l45,d l137,d l122,
d l124,d l216);b l314(l l210,l l219);b l316(l l210,l l357,l l219);b
l387(l l80,l l86);c a l376(d l122);b l324(d l333,l l71,d l290);b l396
(j l67,j l187,j l133,j*l202,j*l226,j*l200);b l383(j l202,j l329,j l200
,j*l67,j*l187,j*l133);l26 l94 l237{a l74;l94 l237*l31;}l50;c a l303(c
a l352,c a l62,e*l265,c a l89);l50* *l348(c a l89);b l347(l50* *l102,
c a l89);a l343(l50* *l102,a l74,c a l129);l26 a l40[3];l26 a l52[2];
l26 l94 l247{a l74;l94 l247*l31;}l98;l53 l119{d*l177;l98* *l244;l98* *
l257;a l69;c a l118;l50* *l107;c a l138;a l163(l50* *l102,c a l129,d k
);c a l162(d k,c a l89);l37:l119(c t l114=16);~l119(b);a l113(d k);a
l91(l48*i,a l74,a l320);a l91(l48*i);l98*l359(a h);l98*l435(a h);a
l434(d k);a l217(a l77,a h);a l211(a l77,a h);a l109(d k,a g);b l180(
a h){h=h;}a l182(b){m!(l177==q||l107==q);}a l42(b){m l69;}c t l171(b);
b l153(a h,c a l158);b l137(a h,j l62);};l53 l123{l40*l168;l40*l271;a
l69;c a l118;l50* *l107;c a l138;b l215(l40 k);c a l231(l40 l88,l40
l157);l37:l123(c t l114=16);~l123(b);a l163(l50* *l102,c a l129,l40 k
);c a l162(l40 k,c a l89);a l113(a l77,a l117,a l142);a l91(l48*i,a
l74);a l91(l48*i);a l109(l40 k,a g);a l332(l40 l88,a g);a l394(c a g);
b l180(a h){h=h;}a l211(a l77,a l117,a l142,a h);a l182(b){m!(l168==q
);}a l42(b){m l69;}c t l171(b);};l53 l121{l52*l185;l52*l251;c a*l116;
a l69;c a l118;l50* *l107;c a l138;b l215(l52 k);c a l231(l52 l88,l52
l157);l37:l121(c t l114=16);~l121(b);a l163(l50* *l102,c a l129,l52 k
);c a l162(l52 k,c a l89);a l113(a l77,a l117);a l217(a l77,a h);a l91
(l48*i,a l74);a l91(l48*i);a l109(l52 l88,a g);a l340(l52 l88,a g);a
l433(a g);b l180(a h){h=h;}a l182(b){m!(l185==q);}a l42(b){m l69;}c t
l171(b);a l321(a h){m(l116[h]&(0x00000001));}b l419(a h){l116[h]|=(
0x00000001);}b l449(a h){l116[h]&=~(0x00000001);}};l53 l99{l48*i;c a
l354;l37:l99(e*u=q);~l99();b l82(e*l207,...);};l26 l139{l173,l241,
l242}l144;l53 l85{l253:e*l159;l144 l249;l37:l85(e*u="\x54\x45\x53\x54"
,l144 k=l173);l148~l85();l85(l149 l85&);l144 l246(b){m l249;}e*l136(b
){m l159;}b l450(e* );};l53 l35:l37 l85{l260:c a l451(d k[3]);b l124(
l40 k);b l409(c a l371,c a l431,c a l423);b l418(d l67[3],d k);c a
l417;b l382(d l67);l37:l119*l104;l123*l79;l121*l178;d l225;d l224;l
l45;l35(c t v=16,e*u="\x54\x45\x53\x54");~l35();b l441(l l45);l35*
l334(s l100);b l243(d l67[3],c a h);b l258(d l67[3]);b l427(d l67[4]);
b l439(d l356[4],c a l77,c a l117,c a l142,c a l430);l35*l245(b);b
l203(b);b l153(c a l158);b l62(s l62);b l292(l99*l46);};b l339(b*l49);
l85::l85(e*u,l144 k){l159=l73(u);l249=k;}l85::~l85(){f(l159)l43(l159);
l159=0;}l85::l85(l149 l85&){l159=0;l249=l173;o(l95,"\x69\x6e\x74\x65"
"\x72\x6e\x61\x6c\x20\x65\x72\x72\x6f\x72\x3a\x20\x4f\x62\x6a\x33\x64"
"\x3a\x3a\x4f\x62\x6a\x33\x64\x28\x63\x6f\x6e\x73\x74\x20\x4f\x62\x6a"
"\x33\x64\x20\x26\x29\x20\x63\x61\x6c\x6c\x65\x64\x21\n");l385(1);}b
l85::l450(e*u){f(l159)l43(l159);l159=l73(u);}b l339(b*l49){l85*l318=(
l85* )l49;l191(l318->l246()){l59 l173:{l75(l35* )l49;}l34;l59 l241:
l34;l59 l242:l34;}}l35::l35(c t v,e*u):l85(u,l173){l104=l128 l119(v);
l79=l128 l123(v);l178=l128 l121(v);l285(l45);l417=(1);l221(l225,0.0,
0.0,0.0);l221(l224,0.0,0.0,0.0);}l35::~l35(){f(l104)l75(l104);f(l79)l75
(l79);f(l178)l75(l178);}b l35::l427(d l67[4]){d l49[3];c a g;g=0;l150
(l49[0],l67[g+1]);l150(l49[1],l67[g+2]);l150(l49[2],l67[0]);l258(l49);
g=1;l150(l49[0],l67[g+1]);l150(l49[1],l67[g+2]);l150(l49[2],l67[0]);
l258(l49);}b l35::l258(d l67[3]){a l309[3];a l589;a l493[3];l119*l529
;l123*l768;l121*l615;f(l104==q)m;f(l79==q)m;f(l178==q)m;l529=l104;;
l768=l79;l615=l178;l382(l67[0]);l382(l67[1]);l382(l67[2]);l309[0]=
l529->l113(l67[0]);l309[1]=l529->l113(l67[1]);l309[2]=l529->l113(l67[
2]);l589=l768->l113(l309[0],l309[1],l309[2]);l493[0]=l615->l113(l309[
0],l309[1]);l493[1]=l615->l113(l309[1],l309[2]);l493[2]=l615->l113(
l309[2],l309[0]);l529->l217(l589,l309[0]);l529->l217(l589,l309[1]);
l529->l217(l589,l309[2]);l529->l211(l493[0],l309[0]);l529->l211(l493[
0],l309[1]);l529->l211(l493[1],l309[1]);l529->l211(l493[1],l309[2]);
l529->l211(l493[2],l309[0]);l529->l211(l493[2],l309[2]);l768->l211(
l493[0],l493[1],l493[2],l589);l615->l217(l589,l493[0]);l615->l217(
l589,l493[1]);l615->l217(l589,l493[2]);}b l35::l243(d l67[3],c a h){
l40 l134;f(l79==q)m;f(l104==q)m;l79->l109(l134,(a)h);l104->l109(l67[0
],l134[0]);l104->l109(l67[1],l134[1]);l104->l109(l67[2],l134[2]);}b
l35::l439(d l356[4],c a l77,c a l117,c a l142,c a l430){d l275[4];
l150(l275[0],l356[l77]);l150(l275[1],l356[l117]);l150(l275[2],l356[
l142]);l150(l275[3],l356[l430]);l427(l275);}b l35::l441(l l209){a g;
l35*l721;d l719[3];d l722[3];l209=l209;f(l104==q)m;f(l79==q)m;l721=
l128 l35((c t)(t)l104->l42(),l136());f(l721==q)m;l41(g=0;g<l79->l42();
g++){l243(l719,(c a)g);l324(l722[0],l45,l719[0]);l324(l722[1],l45,
l719[1]);l324(l722[2],l45,l719[2]);l721->l258(l722);}l75 l721;}l35*
l35::l334(s l100){l35*l484;a g;l52 l683;l52 l552;d z[3];d x[3];d l653
;d l666;c a l518;d l88;d l157;a l309[3];f(l104==q)m q;f(l178==q)m q;
l484=l128 l35((c t)(t)l104->l42(),l136());f(l484==q)m q;l41(g=0;g<
l178->l42();g++){l178->l109(l683,g);f(l100>0.0){l178->l340(l552,g);f(
l552[0]!=-1&&l552[1]!=-1){l243(z,(c a)l552[0]);l243(x,(c a)l552[1]);
l259(z,l653);l259(x,l666);f(l500(l306(l653,l666))<l100)l518=0;l29 l518
=1;}l29 l518=1;f(l518){l104->l109(l88,l683[0]);l104->l109(l157,l683[1
]);l309[0]=l484->l104->l113(l88);l309[1]=l484->l104->l113(l157);l484
->l178->l113(l309[0],l309[1]);l178->l419(g);}}l29{l104->l109(l88,l683
[0]);l104->l109(l157,l683[1]);l309[0]=l484->l104->l113(l88);l309[1]=
l484->l104->l113(l157);l484->l178->l113(l309[0],l309[1]);l178->l419(g
);}}m l484;}l35*l35::l245(b){l35*l484;a g;d l36[3];f(l104==q)m q;f(
l79==q)m q;l484=l128 l35((c t)(t)l104->l42(),l136());f(l484==q)m q;
l41(g=0;g<l79->l42();g++){l243(l36,(c a)g);l484->l258(l36);}m l484;}b
l35::l382(d l67){d l894;d l873;f(l417){l150(l225,l67);l150(l224,l67);
l417=(0);}l29{l368(l894,l224,l67);l361(l873,l225,l67);l150(l224,l894);
l150(l225,l873);}}c a l35::l451(d k[3]){d l588,l597,l206;j l593;l280(
l588,k[0],k[2]);l280(l597,k[1],k[2]);l301(l206,l588,l597);l593=l252(
l206);m(l593<(1.0e-8));}b l35::l124(l40 k){a l49;l49=k[0];k[0]=k[1];k
[1]=k[2];k[2]=l49;}b l35::l409(c a l371,c a l431,c a l423){l40 l88;
l40 l157;f(l79==q)m;l79->l109(l88,(a)l431);l79->l109(l157,(a)l423);f(
(a)l371==l88[1])l124(l88);f((a)l371==l88[2]){l124(l88);l124(l88);}f((
a)l371==l157[1])l124(l157);f((a)l371==l157[2]){l124(l157);l124(l157);
}f((l88[1]==l157[1])||(l88[2]==l157[2]))l79->l394(l423);}b l35::l418(
d l67[3],d k){l274(k,l67[0],l67[1]);l274(k,k,l67[2]);l276(k,k,1.0/3.0
);}b l35::l203(b){a g;a l689;d l818;d l512[3];d l763;d l718;l52 l555;
l52 l799;c a*l566;f(l79==q)m;f(l178==q)m;l689=0;l243(l512,0);l418(
l512,l818);l41(g=1;g<l79->l42();g++){l243(l512,(c a)g);l418(l512,l763
);f(l763[2]>l818[2]){l259(l512,l718);f(l500(l718[2])>0.0){l689=g;l150
(l818,l763);}}}l243(l512,(c a)l689);l259(l512,l718);f(l718[2]>0.0)l79
->l394((c a)l689);l566=(c a* )l175((l115)l79->l42() *l151(a));l41(g=0
;g<l79->l42();g++)l566[g]=0;l566[l689]=1;l41(g=0;g<l178->l42();g++){
l178->l340(l555,g);l178->l109(l799,g);f(l566[l555[0]]==0&&l566[l555[1
]]==1){l409((c a)l799[0],(c a)l555[1],(c a)l555[0]);l566[l555[0]]=1;g
=-1;l453;}f(l566[l555[1]]==0&&l566[l555[0]]==1){l409((c a)l799[0],(c a
)l555[0],(c a)l555[1]);l566[l555[1]]=1;g=-1;l453;}}l43(l566);}b l35::
l153(c a l158){a g;f(l158==0)m;f(l104==q)m;l41(g=0;g<l104->l42();g++)l104
->l153(g,l158);l336(l225,(a)l158);l336(l224,(a)l158);}b l35::l62(s
l226){a g;f(l226==1.0)m;f(l104==q)m;l41(g=0;g<l104->l42();g++)l104->
l137(g,l226);l276(l225,l225,l226);l276(l224,l224,l226);}b l35::l292(
l99*l46){f(!l79||!l104)m;l46->l82("\x53\x74\x61\x74\x69\x73\x74\x69"
"\x63\x3a\n");l46->l82("\x4f\x62\x6a\x65\x63\x74\x20\x20\x20\x3a\x20"
"\x25\x73\n",l136());l46->l82("\x46\x61\x63\x65\x73\x20\x20\x20\x20"
"\x3a\x20\x25\x64\n",l79->l42());l46->l82("\x56\x65\x72\x74\x69\x63"
"\x65\x73\x20\x3a\x20\x25\x64\n",l104->l42());l46->l82("\x4d\x69\x6e"
"\x20\x3a\x20\x3c\x25\x66\x2c\x25\x66\x2c\x25\x66\x3e\n",l225[0],l225
[1],l225[2]);l46->l82("\x4d\x61\x78\x20\x3a\x20\x3c\x25\x66\x2c\x25"
"\x66\x2c\x25\x66\x3e\n",l224[0],l224[1],l224[2]);}