1UNTITLED LOCAL UNTITLED
2
4 glutWireSierpinskiSponge — Draw a wireframe Spierspinski's sponge.
5
7 OpenGLUT - geometry
8
10 #include <openglut.h>
11
12 void
13 glutWireSierpinskiSponge(int num_levels, const GLdouble offset[ 3 ],
14 GLdouble scale);
15
17 num_levels Recursive depth.
18
19 offset Location vector.
20
21 scale Relative size.
22
24 This function recursively draws a few levels of Sierpinski's Sponge in
25 wireframe. If num_levels is 0, draws 1 tetrahedron. The offset is a
26 translation. The z axis is normal to the base. The sponge is centered
27 at the origin.
28
30 Runtime is exponential in num_levels .
31
33 glutSolidSierpinskiSponge(3)
34
35
36
37
38 Epoch