gCAD3D 2.40
ut_sur.h
Go to the documentation of this file.
1 // ../ut/ut_sur.h
2 // prereq:
3 // ../ut/msh2d.h
4 
5 
6 #define TessDatSiz 256
7 
8 
9 // defaultsize points for a single surf
10 #define SUR_NR_PTS 1000
11 
12 
13 
14 // tesselation-data for surfaces
15 // oxs ObjGX of surface (support, boundaries)
16 // ssTyp form of support-surface; Typ_PLN|Typ_SURSWP
17 // ssDbi DB-index of support-surface
18 // ssDat data of support-surface (was TSU_sbsp ..)
19 // tr_* functions 3D to 2D and retour
20 // vc_pt function to get vector for 3d-point on surface
21 // rx, ry 2D-range
22 // dx, dy 2D-increment (grid)
23 // tol 2D-tol
24 // td individual for surface-type;
25 // TessDat_SWP if typ = Typ_SURSWP
26 typedef struct {long dbi; int mdli; ObjGX *oxs;
27  int ssTyp; long ssDbi; void *ssDat;
28  int (*tr_2D_3D)();
29  int (*tr_3D_2D)();
30  int (*VC3D_PT3D)();
31  double rx, ry, dx, dy, tol;
32  char td[TessDatSiz];
35 
36 
37 //----------------------------------------------------------------
38 // vcz NULL: surface not planar; vc3 set.
39 // else normalvector of planar surface; vc3 not set.
40 // if planar surf has n patches: all patches have same normalvector
41 //----------------------------------------------------------------
42 
43 
44 typedef struct {
45  int bPln;
46  } SUR_DAT_pln;
47 
48 
49 typedef struct {
50  double d1;
51  } SUR_DAT_bsp;
52 
53 
54 // EOF
double tol
Definition: ut_sur.h:31
int ssTyp
Definition: ut_sur.h:27
Typ_ObjGX.
Definition: ut_geo.h:242
color, Typ_Color
Definition: ut_geo.h:736
Definition: ut_sur.h:44
#define TessDatSiz
Definition: ut_sur.h:6
Definition: ut_sur.h:49
int bPln
Definition: ut_sur.h:45
3D-vector, Typ_VC
Definition: tst_glDrawElements1.c:58
Vector vcz
Definition: ut_sur.h:33
double d1
Definition: ut_sur.h:50
ColRGB col
Definition: ut_sur.h:34
ObjGX * oxs
Definition: ut_sur.h:26
Definition: ut_sur.h:26