Bézier Curve
Map1(target, u1, u2, stride, order, matrix)
The target argument defines what the control points represent. Values of the target argument are shown in Map1 Target Arguments and Default Values. Note that you must use the Enable command to enable the argument.
Map1 Target Arguments and Default Values 
target Argument
(x, y, z) vertex coordinates
(x, y, z, w) vertex coordinates
s texture coordinates
s, t texture coordinates
s, t, r texture coordinates
s, t, r, q texture coordinates
The second two arguments (u1 and u2) define the range for the map. The stride value is the number of values in each block of storage (in other words, the offset between the beginning of one control point and the beginning of the next control point). The order should equal the degree of the curve plus one. The matrix holds the control points.
For example, Map1(MAP1_VERTEX_3, 0, 1, 3, 4, <4x3 matrix>) is typical for setting the two end points and two control points to define a Bézier line.
You use the MapGrid1 and EvalMesh1 commands to define and apply an evenly spaced mesh.
MapGrid1(un, u1, u2)
sets up the mesh with un divisions spanning the range u1 to u2. Code is simplified by using the range 0 to 1.
EvalMesh1(mode, i1, i2)
actually generates the mesh from i1 to i2. The mode can be either POINT or LINE. The EvalMesh1 command makes its own Begin and End clause.
http://www.tinaja.com/glib/bezconn.pdf offers an explanation of connecting cubic segments so that both the slope and the rate of change match at the connection point. This example does not illustrate doing so; there is only one segment here.
Values for the target argument are the same as those shown in Map1 Target Arguments and Default Values with Map1 replaced with Map2 appropriately. The u1, u2, v1, and v2 values specify the range of the two-dimensional mesh.
For example, Map2(MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, <16x3 matrix>) is typical for setting the 16 points that define a Bézier surface.
Use the MapGrid2 and EvalMesh2 commands to define and apply an evenly spaced mesh.
MapGrid2(un, u1, u2, vn, v1, v2)
sets up the mesh with un and vn divisions spanning the range u1 to u2 and v1 to v2. Code is simplified by using ranges that span 0 to 1.
EvalMesh2(mode, i1, i2, j1, j2)
actually generates the mesh from i1 to i2 and j1 to j2. The mode can be POINT, LINE, or FILL. The EvalMesh2 command makes its own Begin and End clause.