Structure Synth

Structure Synth is a cross-platform application for generating 3D structures by specifying a design grammar. Even simple systems may generate surprising and complex structures.

Link: Structure Synth
More in depth information: Syntopia blog



This is the sourcecode to create the structure shown above:

//use seed 42
set background  white
set maxdepth 30
{ ry -90 b 0.2 } R1
{  x 0 y 0 z -0.5 s 1900 1900 1 color #ccc } box
Rule R1 
{
	dbox
	set seed initial
	{ rx 5 }  R1
}
Rule R1 
{
	dbox
	 { z 0.6 rz 0 } R1
}
Rule R1 
{
 	dbox
	{z 0.1 rz 3 }  R1
}
Rule R1 
weight 0.01 
{
} 
Rule dbox {
  { color #eee s 2 2  0.5  }  box
}
Rule dbox 
weight 0.5 
{
	{ ry 0 s 0.5  1 1 } R1
}
Rule dbox 
weight 0.5 
{
	{ rx 0 s 0.5 2 1 } R1
}

Leave a Reply