gCAD3D 2.40
msh2d.h File Reference

Go to the source code of this file.

Data Structures

struct  TessStru
 

Macros

#define MSH2D_STRU(mshs)
 
#define MSH2D_quadNr()   (MSH2D_qbx.ix * MSH2D_qbx.iy)
 
#define MSH2D_quadInd(itx, ity)   itx + (ity * MSH2D_qbx.ix)
 
#define MSH2D_quadX(itx, dpx, ptx)
 
#define MSH2D_quadY(ity, dpy, ptx)
 
#define MSH2D_quadLeft(iqx, itx)   ((itx) == 0 ? -1 : iqx - 1)
 
#define MSH2D_quadBelow(iqx)   (iqx - MSH2D_qbx.ix)
 
#define MSH2D_IS_PLANAR   MSH2D_qbx.ix == 0
 
#define MSH2D_pst_set(ipgb, mode)
 
#define MSH2D_pgst_set(ipgb, mode)
 

Functions

void MSH2D_quadX (int *itx, double *dx, Point2 *ptx)
 
void MSH2D_quadY (int *ity, double *dy, Point2 *ptx)
 
int MSH2D_quadLeft (int iqx, int itx)
 
int MSH2D_quadBelow (int iqx)
 

Macro Definition Documentation

#define MSH2D_STRU (   mshs)
Value:
TessStru (mshs) = {\
.ipa = _MEMTAB_NUL,\
.pa2 = _MEMTAB_NUL,\
.pa3 = _MEMTAB_NUL,\
.vc3 = _MEMTAB_NUL,\
.fac = _MEMTAB_NUL,\
.fnb = _MEMTAB_NUL,\
.gbx = _GRIDBOX_NUL\
};
Definition: tst_mshig.c:141
#define _GRIDBOX_NUL
Definition: ut_geo_const.h:45
MemTab tab
Definition: msh2d.h:8
#define _MEMTAB_NUL
Definition: ut_memTab.h:40
#define MSH2D_quadNr ( )    (MSH2D_qbx.ix * MSH2D_qbx.iy)
#define MSH2D_quadInd (   itx,
  ity 
)    itx + (ity * MSH2D_qbx.ix)
#define MSH2D_quadX (   itx,
  dpx,
  ptx 
)
Value:
{\
*(itx) = (ptx->x + MSH2D_tol - MSH2D_qbx.pMin.x) / MSH2D_qbx.dx;\
*(dpx) = (*(itx) * MSH2D_qbx.dx) - (ptx->x - MSH2D_qbx.pMin.x);}
double x
Definition: tessbug1.c:66
double dx
Definition: ut_geo.h:1023
static GridBox MSH2D_qbx
Definition: tst_msh2d.c:260
Point pMin
Definition: ut_geo.h:1023
static double MSH2D_tol
Definition: tst_msh2d.c:257
#define MSH2D_quadY (   ity,
  dpy,
  ptx 
)
Value:
{\
*(ity) = (ptx->y + MSH2D_tol - MSH2D_qbx.pMin.y) / MSH2D_qbx.dy;\
*(dpy) = (*(ity) * MSH2D_qbx.dy) - (ptx->y - MSH2D_qbx.pMin.y);}
double dy
Definition: ut_geo.h:1023
static GridBox MSH2D_qbx
Definition: tst_msh2d.c:260
Point pMin
Definition: ut_geo.h:1023
double y
Definition: tessbug1.c:66
static double MSH2D_tol
Definition: tst_msh2d.c:257
#define MSH2D_quadLeft (   iqx,
  itx 
)    ((itx) == 0 ? -1 : iqx - 1)
#define MSH2D_quadBelow (   iqx)    (iqx - MSH2D_qbx.ix)
#define MSH2D_IS_PLANAR   MSH2D_qbx.ix == 0
#define MSH2D_pst_set (   ipgb,
  mode 
)
Value:
{\
((char*)MSH2D_mpst.data)[ipgb - MSH2D_pgb_ips] = mode;}
static int MSH2D_pgb_ips
Definition: tst_msh2d.c:252
char mode
Definition: xa_tra.c:152
#define MSH2D_pgst_set (   ipgb,
  mode 
)
Value:
{\
((char*)MSH2D_mpst.data)[ipgb] = mode;}
char mode
Definition: xa_tra.c:152

Function Documentation

void MSH2D_quadX ( int *  itx,
double *  dx,
Point2 ptx 
)
void MSH2D_quadY ( int *  ity,
double *  dy,
Point2 ptx 
)
int MSH2D_quadLeft ( int  iqx,
int  itx 
)
int MSH2D_quadBelow ( int  iqx)