1gleTwistExtrusion(3GLE)               GLE              gleTwistExtrusion(3GLE)
2
3
4

NAME

6       gleTwistExtrusion  -  Extrude  arbitrary  2D contour along arbitrary 3D
7       path, specifying local rotations (twists).
8

SYNTAX

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

ARGUMENTS

20       ncp       number of contour points
21
22       contour   2D contour
23
24       cont_normal
25                 2D contour normals
26
27       up        up vector for contour
28
29       npoints   numpoints in poly-line
30
31       point_array
32                 polyline vertices
33
34       color_array
35                 colors at polyline verts
36
37       twist_array
38                 contour twists (in degrees)
39

DESCRIPTION

41       Extrude arbitrary 2D contour along arbitrary 3D path, specifying  local
42       rotations  (twists).  As the contour is extruded, it will be twisted by
43       the amount specified in the array "twist_array". The  angles  are  mea‐
44       sured  in  degrees, and the rotation is about the origin of the contour
45       coordinate system.
46
47       The argument "contour" specifies the 2D contour to be  extruded,  while
48       the  argument  "point_array" specifies the path along which to extrude.
49       The vector "up" defines the orientation of the contour y-axis  in  real
50       3D space.
51
52       Note that neither the very first segment, nor the very last segment are
53       drawn. The first and last segments serve only to define  the  angle  of
54       the  join  at the very ends of the polyline. Thus, to draw one segment,
55       three must be specified. To draw two segments, four must be  specified,
56       etc.
57
58       The  normal  array  may  be  NULL. If it is, normal vectors will NOT be
59       automatically generated, and the object will look terrible when lit.
60
61       The color array may be NULL. If NULL, the current color is used. If not
62       NULL,  the  glColor3f()  routine  is  used to set the color; therefore,
63       specifying the glColorMaterial() subroutine before this  primitive  can
64       be used to set diffuse, specular, ambient, etc. colors.
65
66

SEE ALSO

68       gleExtrusion, gleSuperExtrusion
69

AUTHOR

71       Linas Vepstas (linas@linas.org)
72
73
74
75GLE                                   3.0              gleTwistExtrusion(3GLE)
Impressum