|
我在装配环境下用UF_WAVE_create_linked_face,创建了一个面的wave面$ |7 @4 @+ E& J; X w
然后想对这个面进行变换操作,调用UF_MODL_move_feature怎么都不成功,还是没有动,具体代码如下:
# g6 W: \6 F; X M( e
+ h3 q4 Y0 J0 G1 U( S# N5 a3 wtag_t feat=NULL_TAG;
% N& X# J: H$ L; |" [int iRc=0;
. `5 q- _4 \; iiRc=UF_WAVE_create_linked_face(tFacePro, xform, face, FALSE, &feat); //返回值iRc为0,成功!& E# I+ A; ~# I
uf_list_p_t listFaceFeat;, f% x/ ?7 m. d+ ]9 T, ~
UF_MODL_create_list(&listFaceFeat);
4 k: l5 d; { Q5 V. wdouble real_data[2][12]={{0,0,0,1,0,0,0,1,0,0,0,1},{20,20,20,1,0,0,0,1,0,0,0,1}}; //沿X,Y,Z三个方向移动20% J' J5 P- o6 @5 z8 Y5 I
int iMode=CSYS_TO_CSYS;
( Q& p/ M |$ d! P& aiRc=UF_MODL_move_feature(listFaceFeat,iMode,real_data); //返回值iRc为0,成功,但是那个面还是没有动!原地呆着!!??
1 `; m" R6 u& X: l' {5 E1 |0 W g; b4 @, _% M; q8 _
我想可能是没有去参数化,于是,我将feat里的面,用UF_MODL_ask_feat_faces取出来,然后 调用UF_MODL_delete_object_parms对其去参数化,结果仍然是没有移动!
+ }( e+ E. s% M& t
4 W& Y: E- _ e& _. N$ J哪位高手能给个思路,谢谢先! |
|