TDDTRI(3NCARG) | NCAR GRAPHICS | TDDTRI(3NCARG) |
TDDTRI - Draw the triangles defined by a triangle list.
CALL TDDTRI (RTRI, MTRI, NTRI, ITWK)
#include <ncarg/ncargC.h>
void c_tddtri(float *rtri, int mtri, int *ntri, int *itwk)
This routine draws the triangles defined by a triangle list. The triangles are drawn in the order specified by the contents of the permutation array ITWK.
The exact manner in which each triangle is drawn depends on the rendering style selected for it. Generally, it is first filled with a user-selected color; if a wire-frame image is desired and no lines are to be considered hidden, this step may be skipped. The fill color can be a specific one chosen by the user (sometimes, it is useful to pick the background color) or one selected from a range of user-specified colors according to the angle between a line from the light source to the center of the triangle and the normal to the plane of the triangle (which results in a shading of the surface). After the triangle is filled, line segments representing its boundary and/or its intersection with planes of constant U, V, and/or W may be drawn in a user-specified contrasting color.
The arguments of TDDTRI are as follows:
The C-binding argument descriptions are the same as the FORTRAN argument descriptions.
To use TDDTRI or c_tddtri, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
Online: tdclrs, tdctri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
July 1997 | UNIX |