能说说你是怎么用UF_UI_select_with_single_dialog做出来的吗?
还有,按照他的修改了,怎么还是不得呀?
我的代码如下:
void select_plane(void) //选择一个平面对象
{
char *message = "Select Object";
UF_UI_selection_options_t opts;
UF_UI_mask_t mask;
int response;
tag_t view;
double cursor[3];
char error[133];
int unhighlight=0;
UF_initialize();
opts.other_options = 0;
opts.reserved = NULL;
opts.num_mask_triples = 1;
opts.mask_triples = &mask;
/* set up selectable type, subtype, solid type */
opts.mask_triples->object_type = UF_solid_type;
opts.mask_triples->object_subtype = UF_solid_face_subtype;
opts.mask_triples->solid_type = UF_UI_SEL_FEATURE_BODY;
/* set selection scope to be work part */
opts.scope = UF_UI_SEL_SCOPE_WORK_PART;
UF_UI_select_single(message,&opts,&response,
&object,cursor,&view);
} |