iCAx开思工具箱
标题:
UF_MODL_ask_mass_props_3d()求体积
[打印本页]
作者:
QCH
时间:
2011-5-20 16:03
标题:
UF_MODL_ask_mass_props_3d()求体积
以下是我编写的程序调试时我选取了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);
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3