Skip to content

Cellular automaton house generator

Advertising
Advertising
?
Creation quality: 5.0/5 (1 vote)
Evaluation of members on the printability, utility, level of detail, etc.

  • 1k views
  • 1 like
  • 8 downloads

License
3D design format
SCAD Folder details Close
  • automatecellulaire.scad

Learn more about the formats

Publication date 2021-09-21 at 23:08
?
Published to Thingiverse on: 2018-08-08 at 21:46
Design number 525531

3D printer file info

3D model description

Made with OpenSCAD

/* [Pamètres de bases] /
//Hauteur de la structure
Profondeur=17;
//Nombre d'étages
Etages=14;
// Redimensionnement
Redim = 2.01;
/
[Conditions de vie] */
// 0 cellule vivante
cell0=false;
// 1 cellule vivante
cell1=true;
// 2 cellules vivantes
cell2=false;
// 3 cellules vivantes
cell3=false;
// 4 cellules vivantes
cell4=false;
// 5 cellules vivantes
cell5=false;
// 6 cellules vivantes
cell6=false;
// 7 cellules vivantes
cell7=false;
// 8 cellules vivantes
cell8=false;

Taille=(Profondeur*2)+2; Hauteur=Profondeur+Etages; Mid=ceil(Taille/2);
points = [for (a = [0 : Taille]) [for (b = [0 : Taille]) if(b!=Mid || a!=Mid) 0 else 1 ]];

translate([-Mid-Redim/2,-Mid-Redim/2,Hauteur+1])
suite(it=1,maxit=Hauteur);

module suite()
{
translate([0,0,-it*1])
for(i=[0:Taille])
{
for(j=[0:Taille])
{
translate([i,j])
if(points[i][j]==1)
{
color([1/maxit*(it-1)/Taille*i,0.5-maxit*(it-1)/Taille*j,1-(1/maxit*(it-1))/Taille*(i+j)/2.1,1])
scale(Redim)
cube(1);
}
}
}
if(it<=maxit)
{
points2 = [
for (a = [0 : Taille])
[for (b = [0 : Taille])
if(a==0 ||
b==0 ||
a==Taille ||
b==Taille ||
voisinage(x=a,y=b,p=points)==(cell0==false ? 0 : 1) ||
voisinage(x=a,y=b,p=points)==(cell1==false ? 1 : 0) ||
voisinage(x=a,y=b,p=points)==(cell2==false ? 2 : 0) ||
voisinage(x=a,y=b,p=points)==(cell3==false ? 3 : 0) ||
voisinage(x=a,y=b,p=points)==(cell4==false ? 4 : 0) ||
voisinage(x=a,y=b,p=points)==(cell5==false ? 5 : 0) ||
voisinage(x=a,y=b,p=points)==(cell6==false ? 6 : 0) ||
voisinage(x=a,y=b,p=points)==(cell7==false ? 7 : 0) ||
voisinage(x=a,y=b,p=points)==(cell8==false ? 8 : 0) ) 0
else 1 ]];
suite(it=it+1,maxit=maxit,points=points2);
}
}

function voisinage(x,y,p) = (p[x-1][y-1]+p[x][y-1]+p[x+1][y-1]+p[x-1][y]+p[x+1][y]+p[x-1][y+1]+p[x][y+1]+p[x+1][y+1]);

3D printing settings

-

Advertising


Issue with this design? Report a problem.

Would you like to support Cults?

You like Cults and you want to help us continue the adventure independently? Please note that we are a small team of 3 people, therefore it is very simple to support us to maintain the activity and create future developments. Here are 4 solutions accessible to all:

  • ADVERTISING: Disable your banner blocker (AdBlock, …) and click on our banner ads.

  • AFFILIATION: Make your purchases online by clicking on our affiliate links here Amazon.

  • DONATE: If you want, you can make a donation via Ko-Fi 💜.

  • WORD OF MOUTH: Invite your friends to come, discover the platform and the magnificent 3D files shared by the community!


Sharing and downloading on Cults3D guarantees that designs remain in makers community hands! And not in the hands of the 3D printing or software giants who own the competing platforms and exploit the designs for their own commercial interests.

Cults3D is an independent, self-financed site that is not accountable to any investor or brand. Almost all of the site's revenues are paid back to the platform's makers. The content published on the site serves only the interests of its authors and not those of 3D printer brands who also wish to control the 3D modeling market.

100% secure payment by credit card, PayPal, Apple Pay, Google Pay, etc.
View all payment options.