3D spiral

Loading 3D model
of 3D spiral

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
lsystem Spiral3D extends Polygons {
 
set symbols axiom = <(#AAAAAA) . X + F . + Y >;
set iterations = 14;
set polygonTriangulationStrategy = maxDistanceFromNonTriangulated;
 
interpret F as MoveForward(1);
 
interpret + as Yaw(60);
interpret - as Yaw(-60);
 
interpret ^ as Pitch(10);
interpret & as Pitch(-10);
 
rewrite X to ^ F F . & + X;
rewrite Y to & & F . ^ ^ - Y;
}
 
process all with ThreeJsRenderer;