File: Torus3.es

package info (click to toggle)
structure-synth 1.5.0-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,268 kB
  • ctags: 1,966
  • sloc: cpp: 10,209; python: 164; makefile: 71; sh: 15
file content (40 lines) | stat: -rw-r--r-- 855 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
set maxobjects 160000
{ a 1.0  sat 0.5 } grinder 
set background #fff

rule grinder { 
   36 * { rz 5  rz 2 y 0.1   }   36 * { ry 10  rz 3 z 1.2 b 0.99 h 12  } xbox
} 

rule xbox {
  { s 1.1  } frame
  { b 0.7  color #eee   a 1.0  }  box
}

rule xbox {
 { s 1.1    } frame
 { b 0.7  color #fff  a 1.0    } box
}

#define _f3 10
#define _f1 0.05
#define _f2 1.05

rule frame  {
{ s _f1 _f2 _f1  x _f3  z _f3 } box
{s _f1 _f2 _f1 x _f3  z -_f3 } box
{ s _f1 _f2 _f1 x -_f3  z _f3} box
{s _f1 _f2 _f1 x -_f3 z -_f3} box


{ s _f2 _f1  _f1  y _f3  z _f3 } box
{ s _f2 _f1  _f1 y _f3 z -_f3 } box
{ s _f2 _f1  _f1 y -_f3  z _f3 } box
{ s _f2 _f1  _f1 y -_f3  z -_f3 } box

{ s _f1 _f1  _f2 y _f3 x _f3 } box
{ s _f1 _f1  _f2 y _f3  x -_f3 } box
{ s _f1 _f1  _f2 y -_f3  x _f3 } box
{ s _f1 _f1  _f2 y -_f3  x -_f3} box

}