glutWireSierpinskiSponge (3) - Linux Manuals

glutWireSierpinskiSponge: Draw a wireframe Spierspinski's sponge.

NAME

glutWireSierpinskiSponge - Draw a wireframe Spierspinski's sponge.

LIBRARY

OpenGLUT - geometry

SYNOPSIS

In openglut.h Ft void Fn glutWireSierpinskiSponge int num_levels const GLdouble offset[ 3 ] GLdouble scale

PARAMETERS

Bf Em
 num_levels Ef
    Recursive depth.

Bf Em
 offset Ef
        Location vector.

Bf Em
 scale Ef
         Relative size.

DESCRIPTION

This function recursively draws a few levels of Sierpinski's Sponge in wireframe. If Bf Sy
 num_levels Ef
 is 0, draws 1 tetrahedron. The Bf Sy
 offset Ef
 is a translation. The Bf Sy
 z Ef
 axis is normal to the base. The sponge is centered at the origin.

CAVEATS

Runtime is exponential in Bf Sy
 num_levels Ef
 .