• January 19, 2022, 11:19:31 PM

-x*x+y*y-zz bailout
Previous Image
Description: // Is point (x,y,z) element of the 3D fractal set?
public override bool GetBool(double x,double y,double z)
{
double jx,jy,jz;
if (_isJulia)
{
jx=_jx;
jy=_jy;
jz=_jz;
}
else
{
jx=x;
jy=y;
jz=z;
x=_jx;
y=_jy;
z=_jz;
}
for (int i=0;i < _cycles;  i++)
{
x=x%2;
z=z%2;
if(x>0.5)x=1-x;
if(x<-0.5)x=-1-x;
if(z>0.5)z=1-z;
if(z<-0.5)z=-1-z;
double xx=x*x;
double yy=y*y;
double zz=z*z;
double r=xx+yy+zz;
if(r>0)
{
x /=-r;
y /=-r;
z /=-r;
if(r>0 && i>2)
{
Red+=xx/r;
Green+=yy/r;
Blue+=zz/r;
}
if(-xx+yy-zz<minBailout)return false;
}
x=-x;
x+=jx;
y+=jy;
z+=jz;
}
return true;
}
// Gestaltlupe Parameters.
public double minBailout;
public override void Init()
{
base.Init();
if(GetString("intern.Formula.TempUpdateVal")!="43bdb59fe9055d589246fe7f7d8d30fa")
{
SetParameterBulk("Formula.Parameters: minBailout=-0.09 Formula.Static: Cycles=188 Julia=1 jx=-0.008 jy=1.965 jz=0 Scene: CenterX=4.23058990733103 CenterY=0.844029592155878 CenterZ=2.28049348370679 Radius=0.241126543209878 Transformation.Camera: AngleX=-76.0632970334013 AngleY=-14.4351724868908 AngleZ=174.877981616438 IsometricProjection=0 Position=1 intern.Formula: TempUpdateVal=43bdb59fe9055d589246fe7f7d8d30fa");
}
}
Stats:
Views: 158
Total Favorities: 0 View Who Favorited
Filesize: 387.74kB
Height: 1600 Width: 1600
Keywords: Gestaltlupe Mandelbox Julia
Posted by: trafassel October 03, 2018, 12:11:30 AM

Rating: by 4 members.
Total Likes: 4