ArrayOfSurfTris

Return an array of triangles in the surface.

Synopsis

#include "FronTier.h" 

void ArrayOfSurfTris(SURFACE *surf,float *coords,int *vertex_indices);

Input Parameters

SURFACE *surf- pointer to operating surface

Output Parameters

float *coords- array of vertex coordinates as an array
int *vertex_indices- array of vertex indices of each triangle

Notes

usage (2D and 3D): SURFACE *surf; float *coords; int *vertex_indices; ...... /* memory of coords must have be allocated */ ArrayOfSurfTris(surf,coords,vertex_indices);

Examples

Example3 output_0 output_plt