|
程序执行完后就提示致命错误,UG就强制退出,怎么解决这个问题,我知道是UF_OBJ_cycle_by_name这个函数这里出错,但是怎么解决UF_initialize();
tag_t cylinderfaceTAG = NULL_TAG;
const char name[MAX_ENTITY_NAME_SIZE+1] = {"CYLINDER_FACE"};
UF_OBJ_cycle_by_name(name,&cylinderfaceTAG);
int type2;
double ponit2[3];
double dir2[3];
double box2[3];
double radius2;
double rad_date2;
int norm_dir2;
UF_MODL_ask_face_data(cylinderfaceTAG,&type2,ponit2,dir2,box2,&radius2,&rad_date2,&norm_dir2);
UF_UI_open_listing_window();
char msg[200],msg2[200],msg3[200];
sprintf(msg,"%d\n%f\t%f\t%f\n%f\t%f\t%f\n",type2,ponit2[0],ponit2[1],ponit2[2],dir2[0],dir2[1],dir2[2]);
UF_UI_write_listing_window(msg);
sprintf(msg2,"%f\t%f\t%f\t%f\t%f\t%f\t\n",box2[0],box2[1],box2[2],box2[3],box2[4],box2[5]);
UF_UI_write_listing_window(msg2);
sprintf(msg3,"%f\t%f\t%d\n",radius2,rad_date2,norm_dir2);
UF_UI_write_listing_window(msg3);
UF_terminate();
|
|