在UG中move 物体的第三中方法,通过移动特征来移动物体。
double real_data[2][12]={0,0,0,1,0,0,0,1,0,0,0,1,50,80,0,1,0,0,0,1,0,0,0,1};
int mode=CSYS_TO_CSYS;
int N_features;
char features_num[100];
uf_list_p_t cmtag;
i_ret=UF_MODL_ask_object (ug_type,ug_subtype,[$body_object )]
i_ret=UF_MODL_ask_body_feats (body_object,[$cmtag )]
i_ret=UF_MODL_ask_list_count(cmtag,[$N_features)]
i_ret=UF_MODL_move_feature(cmtag,mode,real_data); |