NAME

cxQmeshNumTris - return the number of triangles in a quadrilateral mesh with interpolated centers
#include <cx/Qmesh.h>

long cxQmeshNumTris(long m, long n)
integer function cxQmeshNumTris( m, n )
integer m, n
m
Number of grid points in I (first) dimension.
n
Number of grid points in J (second) dimension.
Returns the number of triangles in a quadrilateral mesh with interpolated centers. 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.

cxGeoTrisDefine(3E), cxGeoGridDefine(3E), cxQmeshCoords(3E), cxQmeshData(3E), cxQmeshNumPoints(3E), cxQmeshNextInd(3E),
Last modified: Mon Nov 6 16:33:47 GMT 2000
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996

Website Feedback

If you would like a response from NAG please provide your e-mail address below.

(If you're a human, don't change the following field)
Your first name.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.