gCAD3D 2.35
ut_msh.h
Go to the documentation of this file.
1 
7 typedef struct {Point *pTab; int pNr; char *pTyp;} Verts;
8 
9 
14 typedef struct {int *ipt; int *inf;} Face;
15 
16 
21 typedef struct {int i1, i2, i3, st;} Fac3;
22 
23 
30 typedef struct {void *fTab; int fNr; int fTyp;} Faces;
31 
32 
44 typedef struct {int ip1, ip2, ip3, if1, if2, if3;} FacNf;
45 
46 
48 typedef struct {int ipt[2];} Edge;
49 
50 
52 typedef struct {int i1, i2;} Edg3;
53 
54 
62 typedef struct {int *ia, iNr; char typ, aux, stat;} EdgeLine;
63 
64 
73 typedef struct {Edge *eTab; int eNr; char *eTyp;} Edges;
74 
75 
82 typedef struct {Verts *p; Faces *f; Edges *e; int mTyp;} Mesh;
83 
84 
90 typedef struct {int ipt, nbsid;} SegBnd;
91 
92 /*
100 typedef struct {int vxSt, vxNr, vxMax, surNb;} EdgSur;
101 */
102 
103 
117 typedef struct {int suID, contNr; char typb, typt, dir, stat;} BndSur;
118 // ^
119 
120 
121 /*
131 typedef struct {int ibeg, iNr; char typi, typd, aux, stat;} IndTab;
132 // size = 12
133 */
134 
135 //----------------------------------------------------------------
136 // ut_tria
137 
142 #define UT3D_ck_triaOrientI(i0,i1)\
143  (((((i0)==0)&&((i1)==1))||(((i0)==1)&&((i1)==2))||(((i0)==2)&&((i1)==0))) ? CCW : CW)
144 
149 #define UT3D_ck_triaOrientV(i0,i1)\
150  (((((i0)==1)&&((i1)==2))||(((i0)==2)&&((i1)==4))||(((i0)==4)&&((i1)==1))) ? CCW : CW)
151 
155 #define UT3D_ind3Tria_2ind(i1,i2) (IABS((i1)+(i2)-3))
156 
159 #define UT3D_tria_pta_fac(tri,fac,pTab){\
160  (tri)->pa[0] = &(pTab)[(fac)->i1];\
161  (tri)->pa[1] = &(pTab)[(fac)->i2];\
162  (tri)->pa[2] = &(pTab)[(fac)->i3];}
163 
164 
165 
166 
167 // prototypes:
168 int MSH_ERR__ (int errTyp, ...);
169 int MSH_dump_fTab (Fac3 *fa, int fNr, char *txt, ...);
170 
char * eTyp
Definition: ut_msh.h:73
static int contNr
Definition: xa_cont.c:97
char * pTyp
Definition: ut_msh.h:7
int st
Definition: ut_msh.h:21
int fTyp
Definition: ut_msh.h:30
Verts * p
Definition: ut_msh.h:82
i1, i2 index to points
Definition: ut_msh.h:52
char stat
Definition: xa_tra.c:152
char typt
Definition: ut_msh.h:117
triangle, Typ_Tria
Definition: ut_geo.h:368
int fNr
Definition: doxy_help1.c:38
#define UT3D_tria_pta_fac(tri, fac, pTab)
Definition: ut_msh.h:7
Face with NeigbourFaces.
Definition: ut_msh.h:44
Typ_EdgSur.
Definition: ut_msh.h:90
Definition: ut_msh.h:30
3D-point, Typ_PT
Definition: ut_geo.h:195
char ** fTab
Definition: doxy_help1.c:39
char typ
Definition: ut_msh.h:62
int * ipt
Definition: ut_msh.h:14
Typ_SURBND.
Definition: ut_msh.h:117
int i2
Definition: ut_msh.h:52
Definition: ut_msh.h:21
int nbsid
Definition: ut_msh.h:90
Typ_EdgeLine.
Definition: ut_msh.h:62
Definition: ut_msh.h:73
Typ_SURMSH 2007-03-24 TB.
Definition: ut_msh.h:82
Definition: ut_msh.h:14
int ip3
Definition: ut_msh.h:44
ipt: index points;
Definition: ut_msh.h:48