gCAD3D 2.40
tst_ut_patch.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GL/gl.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_memTab.h"
#include "../ut/ut_itmsh.h"
#include "../ut/ut_txt.h"


int UPAT_ipatch_disp_opts (int gTyp, int iNr, int *ia, Point *pa, int iOff, char *opts, long dbi)
int UTRI_ntria_ipatch (Triangle *tTab, int *nt, int pTyp, int ptNr, int *iTab, Point *pTab)

Function Documentation

int UPAT_ipatch_disp_opts ( int  gTyp,
int  iNr,
int *  ia,
Point pa,
int  iOff,
char *  opts,
long  dbi 
int UTRI_ntria_ipatch ( Triangle tTab,
int *  nt,
int  pTyp,
int  ptNr,
int *  iTab,
Point pTab 
* get triangles from indexed-Opengl-patch
* Output:
* nt nr of triangles in tTab
* tTab triangles out; SIZE MUST BE >= UTRI_triaNr_patch()
* see also:
* UTRI_triaNr_patch get nr of triangles for [indexed-]opengl-patch
* TSU_nfac_ipatch