Rechercher une page de manuel
glutSolidSierpinskiSponge
Langue: en
Version: 161850 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutSolidSierpinskiSponge - Draw a solid Spierspinski's sponge.LIBRARY
OpenGLUT - geometrySYNOPSIS
In openglut.h Ft void Fn glutSolidSierpinskiSponge int num_levels const GLdouble offset[ 3 ] GLdouble scalePARAMETERS
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 a solid-shaded Sierpinski's Sponge. If Bf Synum_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 Synum_levels Ef
.
TODO
Consider removing the Bf Syoffset Ef
parameter from the API (use a helper function).
SEE ALSO
glutWireSierpinskiSponge(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre