|
想做一个外挂,选择一条边后拉伸。但是选中是做出来了,但是往下该如何处理不知道了,请教高手。) b0 x0 Y! k {! @. y
选择代码附上!; g' [" n" r* n5 }& a; }1 n, x
//1.选择圆的边4 m q/ v& m4 A: A" I2 ^
char cue[] = "选择边(圆)";/ {) n! T' ~4 e. x+ |, l# ^2 I% }
char title[] = "热流道防水槽和排水槽!";
1 ^7 }8 H. I" W8 r; b% D int response;
; b% v. X w8 h( C tag_t object, view;2 |% c; C: E$ U
double cursor[3];- Y: k' b4 X, ~. f9 g
4 X: |3 _8 h, N if(!UF_CALL(UF_UI_select_with_single_dialog(cue,title,UF_UI_SEL_SCOPE_NO_CHANGE, init_proc, NULL,&response, &object, cursor, &view)))
1 {: ]( m0 K6 P {$ O5 V; \$ ~6 i. g" J
if (response == UF_UI_OBJECT_SELECTED ||response == UF_UI_OBJECT_SELECTED_BY_NAME)
1 N6 d% r3 S& n! B {8 d0 h7 x- K% ~: R* \0 g
printf("object tag = %d\n", object);5 d+ O# z8 L7 K+ f
if (response == UF_UI_OBJECT_SELECTED)9 l% @1 ~% W' a8 L q
{
0 N8 G- P/ r4 I# ~/ P5 B0 h printf("view = %d\n", view); S2 G4 Y3 n4 @* R" T |
printf("cursor position = %f %f %f\n", D5 J1 Z8 l9 r
cursor[0], cursor[1], cursor[2]);
; R) z* ^% M3 J }
, s: t/ ?" u+ b3 I }
7 W3 P$ q# t# H' {( U /* unhighlight selected object */
6 Z) z" ]- Z- H UF_DISP_set_highlight(object,0);
7 O0 y4 l9 `, D. R! x# G X } |
|