#include __declspec(dllexport) void TRMODMENUITEM(int*,char *); __declspec(dllexport) void TRMODMODWORK(double*,double*,double*,int*,int*, float*,unsigned char*,int*,int*); void TRMODMENUITEM(int *lang, //[I -] 言語環境 (=0:日本語 =1:他言語) char *item) //[- O] メニュー表示部の文字列 { if( *lang ) { strcpy(item,"Bottom Penki(&T)"); } else { strcpy(item,"底面ペンキ塗り(&T)"); } } void TRMODMODWORK(double *pmax, //[I -] ワークの最大値XY double *pmin, //[I -] ワークの最小値XY double *wpitch, //[I -] ワークのピッチ(精度) int *xmax, //[I -] X方向格子数 int *ymax, //[I -] Y方向格子数 float *top, //[I O] Z値列(X*Y個)の先頭アドレス unsigned char *topc, //[I O] 属性(PENKI,PENなど)の先頭アドレス int *topn, //[I O] 切削ブロック番号の先頭アドレス int *irc) //[- O] Return Code(=0:FALSE =1:TRUE) { int i; for(i=0;i<(*xmax)*(*ymax);i++) if( top[i] == (float)pmin[2] ) topc[i] |= 0x01; *irc=TRUE; }