1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutWireSierpinskiSponge — Draw a wireframe Spierspinski's sponge.
5

LIBRARY

7     OpenGLUT - geometry
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutWireSierpinskiSponge(int num_levels, const GLdouble offset[ 3 ],
14         GLdouble scale);
15

PARAMETERS

17      num_levels     Recursive depth.
18
19      offset         Location vector.
20
21      scale          Relative size.
22

DESCRIPTION

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

CAVEATS

30     Runtime is exponential in  num_levels  .
31

SEE ALSO

33     glutSolidSierpinskiSponge(3)
34
35
36
37
38                                     Epoch
Impressum