Query: glutsolidsierpinskisponge
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UNTITLEDLOCAL UNTITLEDNAMEglutSolidSierpinskiSponge -- Draw a solid Spierspinski's sponge.LIBRARYOpenGLUT - geometrySYNOPSIS#include <openglut.h> void glutSolidSierpinskiSponge(int num_levels, const GLdouble offset[ 3 ], GLdouble scale);PARAMETERSnum_levels Recursive depth. offset Location vector. scale Relative size.DESCRIPTIONThis function recursively draws a few levels of a solid-shaded Sierpinski's Sponge. 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.CAVEATSRuntime is exponential in num_levels .TODOConsider removing the offset parameter from the API (use a helper function).SEE ALSOglutWireSierpinskiSponge(3) Epoch