overview | basic concepts | gops | gprims | animation | rendering | math | index

geometric primitives


quadrics | polygons | patches | lines & text | standard gprim parameters

Polygons

All polygon primitives require the 3D position of its vertices to be specified using a "position" parameter in the parameter list for the gprim. Most commonly, the "P" parameter is used.

(polygon paramlist)

The position of polygon vertices must be specified using a "position" variable in the parameter list. For example:

(polygon 'P '(#<-1 0 0> #<0 1 0> #<1 0 0>))

(points-polygons polyindexlist paramlist)

polyindexlist is an indexlist and specifies the vertex indices corresponding to each polygon. The position of polygon vertices must be specified using a "position" variable in the parameter list.

(general-polygon nverts paramlist)

Creates a general polygon (one which can contain holes). nverts is an indexlist. The i'th element specifies the number of vertices for loop i of the general polygon.

(general-points-polygons indexlist paramlist)

Creates a mesh of general polygons. The i'th element of indexlist is an indexlist which specifies the each loop of general polygon i.

(box paramlist)

box creates a six-sided, polygonal box which by default is a cube centered at the origin with sides of length 2.

box parameters
mincornervec3#<-1 -1 -1>minimum corner of box
maxcornervec3#<1 1 1>maximum corner of box


AL: The Animation Language is Copyright © 1995,1996, Stephen F. May

Last updated: 11/9/95 / Steve May ( smay@cgrg.ohio-state.edu )
Any comments or suggestions appreciated.