查询片体面积的话你可以试一下UF_MODL_ask_mass_props_3d函数
extern int UF_MODL_ask_mass_props_3d (
tag_t * objects,
int num_objs,
int type,
int units,
double density,
int accuracy,
double acc_value[ 11 ],
double mass_props[ 47 ],
double statistics[ 13 ] );
Returns the mass properties of the specified collection of solid or sheet bodies.
output mass_props[0] = Surface Area
详见帮助文档 |