1
// This example shows how to build
2
// custom primitives from individual polygons.
3
// Note that the Triangle primitives are NOT supported
4
// by most of the templates.
6
5 * { x 2 } 5 * { y 2 hue 20 } house
9
{ color black s 1.01 } grid
11
{ z 1 sat 0.4 } pyramid
15
{ color black s 1.01 } grid
21
triangle[0,0,0;1,0,0;0.5,0.5,0.5]
22
triangle[1,0,0;1,1,0;0.5,0.5,0.5]
23
triangle[1,1,0;0,1,0;0.5,0.5,0.5]
24
triangle[0,1,0;0,0,0;0.5,0.5,0.5]
28
triangle[0,0,0;1,0,0;0.5,0,0.5]
29
triangle[1,0,0;1,1,0;0.5,0,0.5]
30
triangle[0.5,0,0.5;1,1,0;0.5,1,0.5]
31
triangle[0,1,0;0.5,1,0.5;1,1,0]
32
triangle[0,0,0;0.5,0,0.5;0,1,0]
33
triangle[0.5,0,0.5;0.5,1,0.5;0,1,0]
b'\\ No newline at end of file'