Logo by HPDZ - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. March 28, 2024, 07:21:24 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Inverted Menger Sponge  (Read 975 times)
0 Members and 1 Guest are viewing this topic.
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« on: December 18, 2016, 09:15:15 AM »

Inverted Menger Sponge



http://www.fractalforums.com/index.php?action=gallery;sa=view;id=19863

// Please remove this after pressing the box above two times. This sets the position.
public override void Init(){base.Init();if(GetString("intern.Formula.TempUpdateVal")!="43454d7d68fddcf192143262682d933f"){SetParameterBulk("Scene: CenterX=0.0943303508326203 CenterY=0.63668925376446 CenterZ=-0.100730183001073 Radius=0.11667506936911 Transformation.Camera: AngleX=-21.432389015681 AngleY=2.50643728825066 AngleZ=-15.6335199621586 IsometricProjection=1 Position=1 View: DephAdd=250");}}
 
 
public override bool GetBool(double x,double y,double z)
{
  double boxSize=2.9;
  double holeSize=1.1;
  double scale=2.2;
  for (int n=1;n < 14;  n++)
  {
    if(Math.Abs(x)>=holeSize &&
    Math.Abs(y)>=holeSize &&
    Math.Abs(z)>=holeSize) return false;
    if(x> holeSize) x-=scale*holeSize;
    if(x<-holeSize) x+=scale*holeSize;
    if(y> holeSize) y-=scale*holeSize;
    if(y<-holeSize) y+=scale*holeSize;
    if(z> holeSize) z-=scale*holeSize;
    if(z<-holeSize) z+=scale*holeSize;
    x*=boxSize;
    y*=boxSize;
    z*=boxSize;
  }
  return true;
}
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
A Menger Sponge Images Showcase (Rate My Fractal) David Makin 5 5106 Last post April 02, 2007, 03:16:32 AM
by bradorpoints
Menger sponge fly-through 3D Fractal Generation twinbee 10 6668 Last post February 16, 2009, 05:43:21 AM
by twinbee
4D Menger sponge Sierpinski Gasket « 1 2 » makc 27 17565 Last post December 09, 2016, 04:01:39 PM
by knighty
3D menger sponge fly through Movies Showcase (Rate My Movie) DonWebber 0 2730 Last post September 14, 2010, 01:01:18 AM
by DonWebber
Inverted Menger Sponge Ring - 4 iterations - EXTREMELY DETAILED 3D print Mandelbulb3D Gallery KRAFTWERK 0 400 Last post March 03, 2014, 07:48:53 PM
by KRAFTWERK

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.165 seconds with 26 queries. (Pretty URLs adds 0.006s, 2q)