马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
以下是我编写的程序调试时我选取了100mm的立方体,结果值却是25703。还请各位高手指点。
char* message="请选择一个实体或输入实体名称";
char* title="实体";
tag_t object;
//int scope=UF_UI_SEL_SCOPE_WORK_PART;
int response;
double cursor [3] ;
tag_t view ;
UF_UI_select_with_single_dialog( message, title, UF_UI_SEL_SCOPE_NO_CHANGE, NULL,NULL,&response,&object,cursor,&view);
int type =1, units =3, accuracy=1, count=0;
double acc_value[11]={.01,0,0,0,0,0,0,0,0,0,0};
double density=1.0, massprops[47], statistics[13];
UF_MODL_ask_mass_props_3d(&object,count,type,units,density,accuracy,acc_value,massprops,statistics);
char info[30]="";
sprintf(info,"所求体积为:%d",massprops[1]);
uc1601(info,1); |