|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我的代码如下:
UF_UI_selection_options_t opts;
UF_UI_mask_t mask = {UF_solid_type, 0, UF_UI_SEL_FEATURE_BODY};
tag_t *solbody = NULL;
int response = 2;
int count = 0;
opts.num_mask_triples = 1;
opts.mask_triples = &mask;
opts.scope = UF_UI_SEL_SCOPE_WORK_PART;
UF_UI_lock_ug_access(UF_UI_FROM_CUSTOM);
UF_UI_select_by_class("Select solid bodies",&opts,&response,
&count,&solbody);
int num_of_body=count;
tag_t so_point=NULL;
tag_t so_dir=NULL;
tag_t so_csys=NULL;
tag_t **tags=NULL;
char factors[3][UF_MAX_EXP_LENGTH]={"2","2","2"};
UF_MODL_create_scale(UF_SCALE_TYPE_GENERAL,solbody,num_of_body,so_point,so_dir,so_csys,factors,tags);
// UF_free(tags);
UF_UI_unlock_ug_access(UF_UI_FROM_CUSTOM);
每当执行完这段程序后,UG总是说内存管理处错,不知道是为什么 |
|