glutWireSierpinskiSponge - Man Page

Draw a wireframe Spierspinski's sponge.

Library

OpenGLUT - geometry

Synopsis

#include <openglut.h>

void
glutWireSierpinskiSponge(int num_levels, const GLdouble offset[ 3 ], GLdouble scale);

Parameters


num_levels

Recursive depth.


offset

Location vector.


scale

Relative size.

Description

This function recursively draws a few levels of Sierpinski's Sponge in wireframe. If


num_levels

is 0, draws 1 tetrahedron. The


offset

is a translation. The


z

axis is normal to the base. The sponge is centered at the origin.

Caveats

Runtime is exponential in


num_levels

.

See Also

glutSolidSierpinskiSponge(3)

Referenced By

glutSolidSierpinskiSponge(3).