1TDCTRI(3NCARG) NCAR GRAPHICS TDCTRI(3NCARG)
2
3
4
6 TDCTRI - Cut triangles defined by a triangle list.
7
9 CALL TDCTRI (RTRI, MTRI, NTRI, IAXS, RCUT)
10
12 #include <ncarg/ncargC.h>
13
14 void c_tdctri(float *rtri, int mtri, int *ntri, int iaxs, float rcut)
15
17 This routine, given a list of NTRI triangles in the array RTRI, an axis
18 identifier IAXS (1 => U axis, 2 => V axis, 3 => W axis), and a value
19 RCUT along that axis, cuts all the triangles that intersect the plane
20 perpendicular to the identified axis at the specified value into two
21 pieces, one on either side of the plane. This is useful when one is
22 rendering the triangles in colors that depend on their position in U,
23 V, or W. (See the example "tdex04".)
24
25 The arguments of TDCTRI are as follows:
26
27 RTRI (an input/output array, of type REAL, dimensioned 10 x MTRI) -
28 a list of triangles, probably created by means of calls to
29 TDSTRI, TDITRI, and/or TDMTRI. The number of triangles in the
30 list may increase as a result of calling TDCTRI.
31
32 MTRI (an input expression of type INTEGER) - the second dimension of
33 RTRI and thus the maximum number of triangles the triangle list
34 will hold.
35
36 NTRI (an input/output variable of type INTEGER) - specifies the
37 number of triangles currently in the list. It is the user's
38 responsibility to zero this initially; its value is increased
39 by each call to a triangle-generating routine like TDSTRI or
40 TDITRI and may be increased by a call to TDCTRI.
41
42 IAXS (an input variable of type INTEGER) - specifies the axis to
43 which the cut plane is perpendicular (1 => U axis, 2 => V axis,
44 3 => W axis).
45
46 RCUT (an input variable of type REAL) - specifies that value of U,
47 V, or W at which the cut plane intersects the axis.
48
50 The C-binding argument descriptions are the same as the FORTRAN
51 argument descriptions.
52
54 To use TDCTRI or c_tdctri, load the NCAR Graphics libraries ncarg,
55 ncarg_gks, and ncarg_c, preferably in that order.
56
58 Online: tdclrs, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit,
59 tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdpack, tdpack_params,
60 tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri,
61 tdstrs
62
64 Copyright (C) 1987-2009
65 University Corporation for Atmospheric Research
66
67 The use of this Software is governed by a License Agreement.
68
69
70
71UNIX July 1997 TDCTRI(3NCARG)