青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

青华模具培训学院
查看: 860|回复: 0

[原创] 用UF_UI_select_with_single_dialog选择后如何拉伸

[复制链接]
发表于 2016-5-31 11:13 | 显示全部楼层 |阅读模式
  想做一个外挂,选择一条边后拉伸。但是选中是做出来了,但是往下该如何处理不知道了,请教高手。
# o% I/ |' u) O; t& B选择代码附上!; @: `1 P" F% \6 c( p7 m/ l
        //1.选择圆的边
$ Z& h( j) V+ F  L    char cue[] = "选择边(圆)";
+ P1 D5 u) y/ y- L& @( c    char title[] = "热流道防水槽和排水槽!";6 }, r$ q8 B( `5 {+ D# V
    int response;8 u5 r& L2 s8 _, H1 a! s! \8 K+ `  @
    tag_t object, view;6 X- g( Z  T, d
    double cursor[3];
3 P( f: B* w: B' r& e( y   
& i$ O6 _, U2 \: q3 h    if(!UF_CALL(UF_UI_select_with_single_dialog(cue,title,UF_UI_SEL_SCOPE_NO_CHANGE, init_proc, NULL,&response, &object, cursor, &view)))
8 l/ Q, P+ Q% D0 y! [5 {- f    {
9 h& ^+ G+ \% L+ f$ H$ n        if (response == UF_UI_OBJECT_SELECTED ||response == UF_UI_OBJECT_SELECTED_BY_NAME)
  I% o7 ?0 A7 b+ m        {
* I7 S+ d8 J( |" e$ {" z4 [" ~* H            printf("object tag = %d\n", object);$ o  J( ?7 w1 z
            if (response == UF_UI_OBJECT_SELECTED)6 [% D! L2 l1 C& D6 \! j0 q( c; @
            {
" \& l. z/ K/ ~; e* L                printf("view = %d\n", view);
) G1 a1 ^( Z7 M7 @                printf("cursor position = %f %f %f\n",2 x/ `1 C$ k' p/ G$ L5 Y
                        cursor[0], cursor[1], cursor[2]);
/ n& P: y0 ?* d6 m5 |' K1 k1 G6 E            }
! t( w0 v6 C8 h4 `        }
* V. D' Y( w8 f3 M6 ^! k        /* unhighlight selected object */  P; y) N) c/ ~$ u
        UF_DISP_set_highlight(object,0);. {4 J+ q' s& `0 B0 ~% O) {5 J  l
    }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2024-6-12 20:03 , Processed in 0.063664 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表