1gleExtrusion(3GLE)                    GLE                   gleExtrusion(3GLE)
2
3
4

NAME

6       gleExtrusion - Extrude arbitrary 2D contour along arbitrary 3D path.
7

SYNTAX

9       void gleExtrusion (int ncp,
10                       gleDouble contour[][2],
11                       gleDouble cont_normal[][2],
12                       gleDouble up[3],
13                       int npoints,
14                       gleDouble point_array[][3],
15                       float color_array[][3]);
16

ARGUMENTS

18       ncp       number of contour points
19
20       contour   2D contour
21
22       cont_normal
23                 2D contour normals
24
25       up        up vector for contour
26
27       npoints   numpoints in poly-line
28
29       point_array
30                 polyline vertices
31
32       color_array
33                 colors at polyline verts
34

DESCRIPTION

36       Extrude  arbitrary  2D  contour  along  arbitrary 3D path. The argument
37       "contour" specifies the 2D contour to be extruded, while  the  argument
38       "point_array"  specifies  the  path along which to extrude.  The vector
39       "up" defines the orientation of the contour y-axis in real 3D space.
40
41       Note that neither the very first segment, nor the very last segment are
42       drawn.  The  first  and last segments serve only to define the angle of
43       the join at the very ends of the polyline. Thus, to draw  one  segment,
44       three  must be specified. To draw two segments, four must be specified,
45       etc.
46
47       The normal array may be NULL. If it is,  normal  vectors  will  NOT  be
48       automatically generated, and the object will look terrible when lit.
49
50       The color array may be NULL. If NULL, the current color is used. If not
51       NULL, the glColor3f() routine is used  to  set  the  color;  therefore,
52       specifying  the  glColorMaterial() subroutine before this primitive can
53       be used to set diffuse, specular, ambient, etc. colors.
54
55

SEE ALSO

57       gleTwistExtrusion, gleSuperExtrusion
58

AUTHOR

60       Linas Vepstas (linas@linas.org)
61
62
63
64GLE                                   3.0                   gleExtrusion(3GLE)
Impressum