[Bielefeld-pm] Pudding! (die zweite, ohne Bild)

Judith Maria Nefertari Dohmann judith_dohmann at mac.com
Son Feb 20 13:36:09 PST 2005


Hallo liebe Perlmongers,

der Pudding ist endlich einigermaßen fertig.
Die Rechnung von letztem Mal hat mir sehr geholfen,
aber ich war erst zu doof Formeln richtig umzustellen:

Aus y = mx + m*r*(1/sin \beta - 1)
machte ich:

0 = y/m*x + m*r*(1/sin \beta - 1)

Was dann zwar fast richtig aussah, aber noch ne doofe Kante
erzeugte.

Als das dann korrigiert war, musste ich noch den gewobbelten Kegel
auf der richtigen Höhe abschneiden, da stellte ich mich dann
auch noch ein bisschen blöd an, und es gab da rauhe Ecken, die
etwa ein Pixel breit waren.

Aber jetzt sieht es ganz gut aus.

Hier die Formel für die neugierigen ;-)

union {
isosurface {
   function { max (
   y + m*(sqrt(pow(x,2)+pow(z,2)) - R - r*f_wobbel(x,z) )
     - m*r*f_wobbel(x,z)*(1/sin(atan(m)) -1)
   , y -  1/m*(sqrt(pow(x,2)+pow(z,2)) - R))}
   contained_by { box {<-2.5,-2,-2.5>, <2.5,0.2,2.5>} }  // container 
shape
   //threshold 0.0                     // optional threshold value for 
isosurface [0.0]
   accuracy 0.0001                      // accuracy of calculation 
[0.001]
   max_gradient 4                      // maximum gradient the function 
can have [1.1]
}
isosurface {
   function { f_torus (x,y,z,R,r*f_wobbel(x,z) )}
   contained_by { box {<-1.4,-0.5,-1.4>, <1.4,0.5,1.4>} }  // container 
shape
   threshold 0.0                     // optional threshold value for 
isosurface [0.0]
   accuracy 0.0001                      // accuracy of calculation 
[0.001]
   max_gradient 3                      // maximum gradient the function 
can have [1.1]
}
cylinder {
   0*x,  -1*y,  1
}
}


Ich hoffe, die Mailingliste kommt mit Attachments klar, dann seht ihr 
hier den
Pudding:
...
Da der erstmal nicht durchkam, habe  ich ihn entfernt.


Ansonsten auf meiner Homepage
http://homepage.mac.com/judith_dohmann/Menu9.html
Unter Filesharing nach Pudding.png suchen.

Ich wünsche euch noch einen schönen Sonntagabend.

Bis Dienstag!

Judith