glutSolidCone

render a solid or wireframe cone respectively.

Signature

glutSolidCone( GLdouble( base ) , GLdouble( height ) , GLint( slices ) , GLint( stacks ) )-> void
glutSolidCone( base , height , slices , stacks )
glutSolidCone( GLdouble(base), GLdouble(height), GLint(slices), GLint(stacks) ) -> None
glutWireCone( GLdouble( base ) , GLdouble( height ) , GLint( slices ) , GLint( stacks ) )-> void
glutWireCone( base , height , slices , stacks )
glutWireCone( GLdouble(base), GLdouble(height), GLint(slices), GLint(stacks) ) -> None

Parameters

VariablesDescription
base
The radius of the base of the cone.
height
The height of the cone.
slices
The number of subdivisions around the Z axis.
stacks
The number of subdivisions along the Z axis.

Description

glutSolidCone and glutWireCone render a solid or wireframe cone respectively oriented along the z axis. The base of the cone is placed at z = 0 , and the top at z = height . The cone is subdivided around the z axis into slices, and along the z axis into stacks.

See Also

glutSolidSphere glutSolidCube glutSolidTorus glutSolidDodecahedron glutSolidOctahedron glutSolidTetrahedron glutSolidIcosahedron glutSolidTeapot

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glutSolidCone
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 27
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 97
OpenGL-Demo PyOpenGL-Demo/tom/conechecker.py Lines: 51
OpenGL-Demo PyOpenGL-Demo/tom/conesave.py Lines: 32
OpenGL-Demo PyOpenGL-Demo/tom/cone.py Lines: 29

MathML Rendering

Powered by MathJax