|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
在做uf5947的时候,第一个参数是矩阵,是不是只能通过uf5943,uf5945获得啊,如果我自己定义一个矩阵给它,不行吗?
以下是我的程序:
int irc = 0;
char *message = "Select Object";
UF_UI_selection_options_t opts;
UF_UI_mask_t mask;
tag_t object, view;
double cursor[3];
int response;
opts.other_options = 0;
opts.reserved = NULL;
opts.num_mask_triples = 1;
opts.mask_triples = &mask;
opts.mask_triples->object_type = UF_solid_type;
opts.mask_triples->object_subtype = UF_solid_body_subtype ;
opts.mask_triples->solid_type = UF_UI_SEL_FEATURE_BODY;
opts.scope = UF_UI_SEL_SCOPE_WORK_PART;
irc = UF_UI_select_single(message,&opts,&response,
&object,cursor,&view);
UF_DISP_set_highlight(object, 0);
const double rp1 [ 16 ]={1.0,0.0,0.0,0.0,0.0,0.98,0.353,-1.446,0.0,-0.35,0.90,2.00,-9.00,-9.00,-9.00,-9.00};
const int n_objects=1 ;
const int move_or_copy=2;
const int dest_layer=0 ;
const int trace_curves=2 ;
tag_t copies;
tag_t trace_curve_group;
int status;
uf5947(rp1,&object,&n_objects,&move_or_copy,&dest_layer,&trace_curves,&copies,&trace_curve_group,&status);
编译是对的,但是没显示,status的值是4,也就是Shear Matrix With Non-shearable,请各位帮帮忙?
|
|