NAME
cxQmeshNumTris
- return the number of triangles in a quadrilateral mesh with interpolated centers
C SPECIFICATION
#include <cx/Qmesh.h>
long cxQmeshNumTris(long m, long n)
FORTRAN SPECIFICATION
integer function cxQmeshNumTris( m, n )
integer m, n
PARAMETERS
-
m
-
Number of grid points in I (first) dimension.
-
n
-
Number of grid points in J (second) dimension.
FUNCTION RETURN VALUE
Returns the number of triangles in a quadrilateral mesh with interpolated centers.
DESCRIPTION
cxQmeshNumTris is a utility function to compute the number of points
in a quadrilateral mesh with interpolated centers. This number is
4 x (m-1) x (n-1).
Two arrays are necessary to describe a quadrilateral mesh making use of
the cell centers. One array contains the coordinates of the grid points,
while the other gives the indices of triangles used to make polygons, with
triangle strips being the preferred method of polygon creation. An
array of length cxQmeshNumTris may be used to add normals to the
triangles if desired.
SEE ALSO
cxGeoTrisDefine(3E),
cxGeoGridDefine(3E),
cxQmeshCoords(3E),
cxQmeshData(3E),
cxQmeshNumPoints(3E),
cxQmeshNextInd(3E),
Last modified: Mon Nov 18 13:53:13 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996