Title: Mandelbox Julia with Spirals Post by: trafassel on January 09, 2017, 01:12:18 AM Mandelbox Julia with Spirals (http://nocache-nocookies.digitalgott.com/gallery/19/999_09_01_17_1_12_17.jpeg) http://www.fractalforums.com/index.php?action=gallery;sa=view;id=19927 // Mandelbox Julia with fold at 0.5, scale = 1 and without y transformation. // CenterX=5.50297045220822 CenterY=0.583399182382745 // CenterZ=2.10738023707053 Radius=0.214958267491292 public override bool GetBool(double x, double y, double z) { for (int i = 0;i < 77; i++) { while(Math.Abs(x)>0.5) { while(x>0.5) x = 1-x; while(x<-0.5) x = -1-x; } while(Math.Abs(z)>0.5) { while(z>0.5) z = 1-z; while(z<-0.5) z = -1-z; } double r=x*x+y*y+z*z; if(r>0) { x /= r; y /= r; z /= r; if(r<0.3) return false; } y=-y; x+= 0.02; y+= 1.9; z+= 0.5; } return true; } |