gCAD3D 2.40
ut_geo_const.h
Go to the documentation of this file.
1 /***************************************************************************
2  ut_geo_const.h - description
3  -------------------
4  begin : Fri Aug 25 2000
5  copyright : (C) 2000 by CADCAM-Services Franz Reiter
6  email : franz.reiter@cadcam.co.at
7 
8 ****************************************************************************
9 
10 *//*
26 
27 */
28 
29 #define _UT3D_VECTOR_NUL { 0., 0., 0. }
30 
31 
32 // CurvPrcv
33 #define _PRCV_NUL { 0L, 0, 0, 0,\
34  NULL, NULL, NULL,\
35  (short)0, (char)2, (char)0 };
36 // typ, fTmp, uu1
37 
38 // CurvCCV
39 #define _CCV_NUL { FLT_32_MAX, FLT_32_MAX, 0L, 0L, 0L,\
40  (unsigned short)0, (unsigned short)0,\
41  (short)0, (short)0, (char)0, (char)-1, (char)-1, (char)0 };
42 // typ, us1; dir, clo, trm, uc1;
43 
44 // GridBox
45 #define _GRIDBOX_NUL {{0.,0.,0.}, 0,0,0, 0.,0.,0.}
46 
47 
48 // GridBox
49 #define _ColRGB_NUL { 100,100,100, 0, 0, 0, 0, 1}
50 // r g b uu tra sym tex col
51 
52 
53 // IndTab
54 #define _INDTAB_NUL { 0,0, 0,0,0,0}
55 
56 
57 //================================================================
58 // constant geometric objects:
59 #ifndef INCLUDE_FULL
60 extern const Point UT3D_PT_NUL;
61 extern const Vector UT3D_VECTOR_NUL;
62 
63 extern const Vector UT3D_VECTOR_X;
64 extern const Vector UT3D_VECTOR_Y;
65 extern const Vector UT3D_VECTOR_Z;
66 
67 extern const Vector UT3D_VECTOR_IX;
68 extern const Vector UT3D_VECTOR_IY;
69 extern const Vector UT3D_VECTOR_IZ;
70 
71 extern const Mat_3x3 UT3D_MAT_3x3;
72 extern const Mat_4x3 UT3D_MAT_4x3;
73 extern const Mat_4x4 UT3D_MAT_4x4;
74 
75 extern const CurvCCV UT3D_CCV_NUL;
76 extern const CurvPrcv UT3D_PRCV_NUL;
77 extern const GridBox GRIDBOX_NUL;
78 
79 
80 //----------------------------------------------------------------
81 #else
82 
83 
84 const Point2 UT2D_PT_NUL = { 0.0, 0.0 };
85 const Point UT3D_PT_NUL = { 0.0, 0.0, 0.0 };
86 
88 
89 const Vector2 UT2D_VECTOR_NUL = { 0.0, 0.0 };
90 const Vector2 UT2D_VECTOR_X = { 1.0, 0.0 };
91 const Vector2 UT2D_VECTOR_Y = { 0.0, 1.0 };
92 
93 const Vector UT3D_VECTOR_NUL = _UT3D_VECTOR_NUL;
94 // const Vector UT3D_VECTOR_NUL = { 0.0, 0.0, 0.yy0 };
95 
96 const Vector UT3D_VECTOR_X = { 1.0, 0.0, 0.0 };
97 const Vector UT3D_VECTOR_Y = { 0.0, 1.0, 0.0 };
98 const Vector UT3D_VECTOR_Z = { 0.0, 0.0, 1.0 };
99 
100 const Vector UT3D_VECTOR_IX = {-1.0, 0.0, 0.0 };
101 const Vector UT3D_VECTOR_IY = { 0.0,-1.0, 0.0 };
102 const Vector UT3D_VECTOR_IZ = { 0.0, 0.0,-1.0 };
103 
104 
105 const Mat_3x3 UT3D_MAT_3x3 = { {1.0, 0.0, 0.0},
106  {0.0, 1.0, 0.0},
107  {0.0, 0.0, 1.0} };
108 
109  // VX VY VZ PO
110 const Mat_4x3 UT3D_MAT_4x3 = { {1.0, 0.0, 0.0, 0.0},
111  {0.0, 1.0, 0.0, 0.0},
112  {0.0, 0.0, 1.0, 0.0} };
113 
114 const Mat_4x4 UT3D_MAT_4x4 = { {1.0, 0.0, 0.0, 0.0},
115  {0.0, 1.0, 0.0, 0.0},
116  {0.0, 0.0, 1.0, 0.0},
117  {0.0, 0.0, 0.0, 1.0} };
118 
119 
120 
121 const CurvCCV UT3D_CCV_NUL = _CCV_NUL;
122 const CurvPrcv UT3D_PRCV_NUL = _PRCV_NUL;
123 const GridBox GRIDBOX_NUL = _GRIDBOX_NUL;
124 const IndTab INDTAB_NUL = _INDTAB_NUL;
125 
126 #endif
127 
128 
129 //================ EOF =====================
#define _PRCV_NUL
Definition: ut_geo_const.h:33
#define _CCV_NUL
Definition: ut_geo_const.h:39
const GridBox GRIDBOX_NUL
const Vector UT3D_VECTOR_IX
double Mat_4x3[3][4]
Typ_M4x3 size 96.
Definition: ut_geo.h:151
const Point2 UT2D_PT_INFTY
polygonal_representation_of_curve CurvPrcv functions: PRCV
Definition: ut_geo.h:591
const Vector UT3D_VECTOR_NUL
#define _GRIDBOX_NUL
Definition: ut_geo_const.h:45
#define _INDTAB_NUL
Definition: ut_geo_const.h:54
const CurvCCV UT3D_CCV_NUL
Trimmed curve CurvCCV Typ_CVTRM.
Definition: ut_geo.h:613
double Mat_3x3[3][3]
Typ_M3x3.
Definition: ut_geo.h:150
const Vector2 UT2D_VECTOR_Y
3D-point, Typ_PT
Definition: tessbug1.c:66
const Mat_3x3 UT3D_MAT_3x3
double Mat_4x4[4][4]
Typ_M4x4.
Definition: ut_geo.h:152
const Vector UT3D_VECTOR_IY
3D-vector, Typ_VC
Definition: tst_glDrawElements1.c:58
const Vector UT3D_VECTOR_IZ
2D-vector, Typ_VC2
Definition: ut_geo.h:204
2D-point, Typ_PT2
Definition: ut_geo.h:190
const Mat_4x3 UT3D_MAT_4x3
const Vector UT3D_VECTOR_X
const Point UT3D_PT_NUL
#define FLT_32_MAX
Definition: ut_types.h:42
const Vector UT3D_VECTOR_Y
const Vector2 UT2D_VECTOR_NUL
const CurvPrcv UT3D_PRCV_NUL
const Mat_4x4 UT3D_MAT_4x4
Typ_GridBox _GRIDBOX_NUL.
Definition: ut_geo.h:1023
Index-table; Typ_IndTab; _INDTAB_NUL.
Definition: ut_geo.h:227
const Vector UT3D_VECTOR_Z
#define _UT3D_VECTOR_NUL
Definition: ut_geo_const.h:29
const Vector2 UT2D_VECTOR_X
const Point2 UT2D_PT_NUL