马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
程序如下,大家帮审一下。
tag_t object1,object2;
int guess1_given=0,guess2_given=0;
double guess1[3], guess2[3], min_dist, pt_on_ent1[3],pt_on_ent2[3], * accuracy;
UF_CURVE_line_s line_coords;
line_coords.start_point[0]=0;
line_coords.start_point[1]=0;
line_coords.start_point[2]=0;
line_coords.end_point[0]=100;
line_coords.end_point[1]=100;
line_coords.end_point[2]=100;
UF_FEATURE_SIGN sign=UF_NULLSIGN;
double center[ 3 ];
center[0]=100;
center[1]=100;
center[2]=100;
char *diam="20",*mindis;
UF_initialize();
UF_CURVE_create_line (&line_coords,&object1);
UF_MODL_create_sphere1 (sign,center,diam,&object2);
UF_MODL_ask_minimum_dist(object1,object2,guess1_given,guess1,guess2_given,guess2,&min_dist,pt_on_ent1,pt_on_ent2);
UF_terminate();
|