Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| <?xml version="1.0" encoding="utf-8"?> | |
| <ParameterDict> | |
| <Entry Key="Border.Max.x" Value="0.203170875663216" /> | |
| <Entry Key="Border.Max.y" Value="-0.974819197030144" /> | |
| <Entry Key="Border.Max.z" Value="2.63537731480172" /> | |
| <Entry Key="Border.Min.x" Value="0.0387474809056918" /> | |
| <Entry Key="Border.Min.y" Value="-1.05703089440891" /> | |
| <Entry Key="Border.Min.z" Value="2.4709539200442" /> | |
| <Entry Key="Formula.Static.Cycles" Value="60" /> | |
| <Entry Key="Formula.Static.Formula" Value="-1" /> | |
| <Entry Key="Formula.Static.jx" Value="-1.2" /> | |
| <Entry Key="Formula.Static.jy" Value="0.01" /> | |
| <Entry Key="Formula.Static.jz" Value="0.8" /> | |
| <Entry Key="Formula.Static.jzz" Value="0" /> | |
| <Entry Key="Formula.Static.MinCycle" Value="100" /> | |
| <Entry Key="Intern.Formula.Source" Value="/// <summary>
 /// Initialisierung
 /// </summary>
 public override void Init() {
 base.Init();

additionalPointInfo=new AdditionalPointInfo();
 // Hier kann z.B. pow oder gr aus den Einstellungen gelesen werden.
 }


// Mandelbox
 public override long InSet(double ar, double ai, double aj, double br, double bi, double bj, double bk, long zkl, bool invers) {

double gr=50000;
double xx, yy, zz;
 long tw;
 int n;
 double x=0,y=0,z=0;
 double r_n = 0;

 xx = x * x; yy = y * y; zz = z * z; 
 tw = 0L;
 double r = Math.Sqrt(xx + yy + zz);
 double scale = ar;
additionalPointInfo.red=0;
additionalPointInfo.green=0;
additionalPointInfo.blue=0;

 for (n = 1; n < zkl; n++) {
if(scale<-1)
scale=scale-ai*(scale+1);

// ; fold box onto itself 
 if (x > 1)
 x = 2.0 - x;
 else if (x < -1)
 x = -2.0 - x;
 
 if (y > 1)
 y = 2.0 - y;
 else if (y < -1)
 y = -2.0 - y;
 
 if (z > 1)
 z = 2.0 - z;
 else if (z < -1)
 z = -2.0 - z;
 
 // ; fold sphere onto itself
 double fixedRadius = 1;
 double minRadius = 0.00001;
 double length= r = Math.Pow(x*x + y*y + z*z,aj);
 // double length= r = x*x + y*y + z*z;


 if (length > gr) { 
//additionalPointInfo.red=x*x/r;
//additionalPointInfo.green=y*y/r;
//additionalPointInfo.blue=z*z/r;
 tw = n; break; 
 }

 double mult=1;

 if (length < minRadius) {
 // mult=Math.Sqrt(fixedRadius)/(minRadius);
 } else
 if (length < fixedRadius) {
 mult=Math.Sqrt(fixedRadius)/(length);
 }
 mult*=scale;
 x*=mult;
 y*=mult;
 z*=mult;
 x+=br;
 y+=bi;
 z+=bj;
 }


 if (invers) {
 if (tw == 0)
 tw = 1;
 else
 tw = 0;
 }
 return (tw);

 }

" /> | |
| <Entry Key="Transformation.3.AngleX" Value="0" /> | |
| <Entry Key="Transformation.3.AngleY" Value="45" /> | |
| <Entry Key="Transformation.3.AngleZ" Value="0" /> | |
| <Entry Key="Transformation.3.CenterX" Value="-0.407525953022069" /> | |
| <Entry Key="Transformation.3.CenterY" Value="2.56540588074062" /> | |
| <Entry Key="Transformation.3.CenterZ" Value="0.07803688462125" /> | |
| <Entry Key="Transformation.AngleX" Value="12" /> | |
| <Entry Key="Transformation.AngleY" Value="0" /> | |
| <Entry Key="Transformation.AngleZ" Value="-23" /> | |
| <Entry Key="Transformation.Camera.AngleX" Value="0" /> | |
| <Entry Key="Transformation.Camera.AngleY" Value="0" /> | |
| <Entry Key="Transformation.Camera.AngleZ" Value="0" /> | |
| <Entry Key="Transformation.Perspective.Cameraposition" Value="0.3" /> | |
| <Entry Key="Transformation.Stereo.Angle" Value="-9" /> | |
| <Entry Key="Transformation.Stereo.EyeDistance" Value="0.5" /> | |
| <Entry Key="View.Height" Value="1200" /> | |
| <Entry Key="View.Perspective" Value="0" /> | |
| <Entry Key="View.Width" Value="1200" /> | |
| </ParameterDict> |