00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef __GenFunc__h
00043 #define __GenFunc__h
00044
00045 #include <stdio.h>
00046
00047 #ifndef __double_real
00048 #define __double_real
00049 typedef double real;
00050 #endif
00051 #ifndef __int_id
00052 #define __int_id
00053 typedef int Id;
00054 #endif
00055 #ifndef __double_vector
00056 #define __double_vector
00057 typedef real vector[4];
00058 #endif
00059 #ifndef __struct_solid
00060 #define __struct_solid
00061 typedef struct solid STYPE;
00062 #endif
00063 #ifndef __struct_face
00064 #define __struct_face
00065 typedef struct face FTYPE;
00066 #endif
00067 #ifndef __struct_loop
00068 #define __struct_loop
00069 typedef struct loop LTYPE;
00070 #endif
00071 #ifndef __struct_edge
00072 #define __struct_edge
00073 typedef struct edge ETYPE;
00074 #endif
00075 #ifndef __struct_halfedge
00076 #define __struct_halfedge
00077 typedef struct halfedge HTYPE;
00078 #endif
00079 #ifndef __struct_vertex
00080 #define __struct_vertex
00081 typedef struct vertex VTYPE;
00082 #endif
00083
00084
00085 void MSD_execNameAssociateAxisElement(void);
00086 int MSD_highNameAssociateAxisElement(char *name1, char *name2);
00087
00088
00089 void MSD_execNameDesassociateAxisElement(void);
00090 int MSD_highNameDesassociateAxisElement(char *name);
00091
00092
00093 void MSD_execNameCopyElement(void);
00094 int MSD_highNameCopyElement(char *name1, char *name2);
00095 void MSD_execNameCopySolid(void);
00096 int MSD_highNameCopySolid(char *name1, char *name2);
00097 void MSD_execCopySolid(void);
00098 int MSD_highCopySolid(int sn);
00099 int MSD_lowCopySolid(SPTYPE s, Id sn);
00100
00101
00102 void MSD_execNameDeleteElement(void);
00103 int MSD_highNameDeleteElement(char *name);
00104
00105
00106 #ifndef __UNIX_
00107 void MSD_execDir(void);
00108 int MSD_lowDir(char *name);
00109 void MSD_lowDisplayFiles(char *nam);
00110
00111 #endif
00112
00113
00114 void MSD_execNameListFaceAdjacency(void);
00115 int MSD_highNameListFaceAdjacency(char *name, char *fname);
00116 int MSD_lowListFaceAdjacency(SPTYPE optr, char *fname);
00117
00118
00119 char MSD_getTypeByName(char *nam);
00120 int MSD_getNumberOfSolid(void);
00121 char **MSD_putSolidNameInList(char **list);
00122
00123
00124 void MSD_execNameAssociateGroupElement(void);
00125 int MSD_highNameAssociateGroupElement(char *name1, char *name2);
00126
00127
00128 void MSD_execNameDesassociateGroupElement(void);
00129 int MSD_highNameDesassociateGroupElement(char *name);
00130
00131
00132 void MSD_execListElement(void);
00133 void MSD_lowListAllSolidName(void);
00134 void MSD_lowListNumberOfElements(void);
00135
00136
00137 void MSD_execNameLoadSolid(void);
00138 int MSD_highNameLoadSolid(char *oname, char *fname);
00139 void MSD_execLoadSolid(void);
00140 int MSD_lowLoadSolid(Id sn, char *fname);
00141 int MSD_highLoadSolid(char *fname);
00142
00143
00144 void MSD_execNameNCopySolid(void);
00145 int MSD_highNameNCopySolidTranslate(char *name, real Xi, real Yi, real Zi, real Xd, \
00146 real Yd, real Zd, int n);
00147 int MSD_lowNameNCopySolidTranslate(char *name, vector omove, vector dmove, int n);
00148 int MSD_highNameNCopySolidSpiral(char *name, real Xi, real Yi, real Zi, real Xd,
00149 real Yd, real Zd, real dth, real dmv, int n);
00150 int MSD_lowNameNCopySolidSpiral(char *name, vector cpos, vector vect, real dth, real dmv, int n);
00151 void MSD_lowRequestNewName(char *name);
00152
00153
00154 void MSD_execNameRenameElement(void);
00155 int MSD_highNameRenameElement(char *name1, char *name2);
00156 void MSD_execNameRenameSolid(void);
00157 int MSD_highNameRenameSolid(char *name1, char *name2);
00158 int MSD_lowNameRenameSolid(SPTYPE sptr, char *name2);
00159
00160
00161 void MSD_execNameRotateElement(void);
00162 int MSD_highNameRotateElement(char *name, real x1, real y1, real z1,
00163 real x2, real y2, real z2, real th);
00164
00165
00166 void MSD_execNameSaveSolid(void);
00167 int MSD_highNameSaveSolid(char *oname, char *fname);
00168 void MSD_execSaveSolid(void);
00169 int MSD_highSaveSolid(int sn, char *fname);
00170 int MSD_lowSaveSolid(SPTYPE s, char *fname);
00171
00172
00173 void MSD_execShow(void);
00174 EPTYPE MSD_lowShowFindEdge(SPTYPE s, Id en);
00175 VPTYPE MSD_lowShowFindVertex(SPTYPE s, Id vn);
00176 void MSD_lowListAllSolid(void);
00177 void MSD_lowListAllVertex(SPTYPE optr);
00178 void MSD_lowListAllEdge(SPTYPE optr);
00179 void MSD_lowListAllFace(SPTYPE optr);
00180 void MSD_lowShowListSolid(SPTYPE optr);
00181 void MSD_lowShowListVertex(VPTYPE vptr);
00182 void MSD_lowShowListEdge(EPTYPE eptr);
00183 void MSD_lowShowListFace(FPTYPE fptr);
00184
00185
00186 void MSD_execNameTranslateElement(void);
00187 int MSD_highNameTranslateElement(char *name, real tx, real ty, real tz);
00188
00189
00190 void MSD_execWait(void);
00191 void MSD_highWait(int waitsec);
00192 void MSD_execTime(void);
00193
00194 #endif