gleExtrusion

Extrude arbitrary 2D contour along arbitrary 3D path.

Signature

gleExtrusion( int( ncp ) , gleDouble[][2]( contour ) , gleDouble[][2]( cont_normal ) , gleDouble[3]( up ) , int( npoints ) , gleDouble[][3]( point_array ) , float[][3]( color_array ) )-> void
gleExtrusion( contour , cont_normal , up , point_array , color_array )
gleExtrusion( c_int(ncp), arrays.GLdoubleArray(contour), arrays.GLdoubleArray(cont_normal), arrays.GLdoubleArray(up), c_int(npoints), arrays.GLdoubleArray(point_array), arrays.GLfloatArray(color_array) ) -> None

Parameters

VariablesDescription
ncp
number of contour points
contour
2D contour
cont_normal
2D contour normals
up
up vector for contour
npoints
numpoints in poly-line
point_array
polyline vertices
color_array
colors at polyline verts

See Also

gleTwistExtrusion gleSuperExtrusion

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.

gleExtrusion
OpenGL-Demo PyOpenGL-Demo/GLE/texas.py Lines: 50, 51