ncl_tdctri (3) - Linux Manuals
ncl_tdctri: Cut triangles defined by a triangle list.
TDCTRI - Cut triangles defined by a triangle list.
SYNOPSISCALL TDCTRI (RTRI, MTRI, NTRI, IAXS, RCUT)
C-BINDING SYNOPSIS#include <ncarg/ncargC.h>
DESCRIPTIONThis routine, given a list of NTRI triangles in the array RTRI, an axis identifier IAXS (1 => U axis, 2 => V axis, 3 => W axis), and a value RCUT along that axis, cuts all the triangles that intersect the plane perpendicular to the identified axis at the specified value into two pieces, one on either side of the plane. This is useful when one is rendering the triangles in colors that depend on their position in U, V, or W. (See the example "tdex04".)
The arguments of TDCTRI are as follows:
- (an input/output array, of type REAL, dimensioned 10 x MTRI) - a list of triangles, probably created by means of calls to TDSTRI, TDITRI, and/or TDMTRI. The number of triangles in the list may increase as a result of calling TDCTRI.
- (an input expression of type INTEGER) - the second dimension of RTRI and thus the maximum number of triangles the triangle list will hold.
- (an input/output variable of type INTEGER) - specifies the number of triangles currently in the list. It is the user's responsibility to zero this initially; its value is increased by each call to a triangle-generating routine like TDSTRI or TDITRI and may be increased by a call to TDCTRI.
- (an input variable of type INTEGER) - specifies the axis to which the cut plane is perpendicular (1 => U axis, 2 => V axis, 3 => W axis).
- (an input variable of type REAL) - specifies that value of U, V, or W at which the cut plane intersects the axis.
C-BINDING DESCRIPTIONThe C-binding argument descriptions are the same as the FORTRAN argument descriptions.
ACCESSTo use TDCTRI or c_tdctri, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
COPYRIGHTCopyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.