UF_STRING_t guide;
; f, t, S( E& h |, v; p; U, C UF_STRING_t section;1 E7 Q7 ?, F+ s. O
UF_STRING_t spine; //脊线
9 f' D' `1 W) b' d& y UF_STRING_t curve;+ ~7 K! U% m" D- w0 I/ r& b7 w
UF_METHOD_t orientation;2 p" I7 Y1 e( T5 g \
UF_METHOD_t scaling;
6 x( c k! `: F2 E( } , Q5 Q( J5 N: `& z; V- Y
UF_STRING_p_t s_guide = &guide;
8 s9 |7 {1 a: P1 m8 x UF_STRING_p_t s_section=§ion;//截面线, J- f) Y' L. n( U+ B$ \
UF_STRING_p_t s_spine=&spine;
9 |* P4 z7 U; g8 Z0 \ UF_STRING_p_t s_curve=&curve;
& O% ^: e& ?9 Q' V* v& A9 @+ e
" x- s/ v" P% E UF_MODL_init_string_list(s_guide);7 g5 g6 x7 W" r
UF_MODL_create_string_list(1,1,s_guide);
9 `* S8 K- G% c
9 g0 _9 }& m! M( _& ~+ [& Y UF_MODL_init_string_list(s_section);
4 J' @9 b G' v3 \8 ?7 u UF_MODL_create_string_list(1,1,s_section);
( q6 _) j& m2 b) f6 l* m
- E* @0 C$ X: ]0 X UF_MODL_init_string_list(s_spine);
$ |4 ?/ Y) `& U6 K UF_MODL_create_string_list(2,2,s_spine);
0 u" ^6 t& Y6 m* J |" B9 G& x
4 N" D4 f4 x2 _% q2 ~ UF_MODL_init_string_list(s_curve);
' ^& y# i6 Z1 E8 } UF_MODL_create_string_list(1,1,s_spine);
6 j$ R( ]% J( i, h& `, C8 e; Y
* _" k. q1 c* B c+ ^ int alignment=1; //对齐方式--参数5 D7 v1 b( X; }
int body_type=0; //扫描成片体4 Z" B9 R# z& B F( ]4 e
int inter;% s/ a5 x7 B) J1 V8 G: N5 M
UF_FEATURE_SIGN boolean=UF_NULLSIGN;//布尔运算
- t" X3 f n1 x9 n double tol[3]={0.01,0.01,0.01}; //公差 g( A/ b9 c& u* S. R) b
tag_t body_obj_id;' f3 Y4 ]& G8 A" }! L2 X
. _ U k' V! f" m3 F; Y, C
s_guide->num=1; //引导线为1个0 _9 O- S4 V9 U
s_guide->string[0]=1; //每一个只有一个items
, ?1 q; ~8 Y7 d2 k1 m s_guide->dir[0]=1; //UF_MODL_CURVE_START_FROM_BEGIN 引导线的方向, G4 ~0 S/ d( k
s_guide->id[0]=edge_blk[0]; //引导线地址
! z e* Z$ }. Z0 v `) Y8 W+ v// s_guide->id[1]=edge_blk[0];6 Q5 I8 e! ?8 U7 y. B7 o- e8 ?6 b r
& `2 f4 b1 g) c% K s_section->num=1; //截面线串为1根5 T- ~9 @: @' y0 B- a& H. k. N
s_section->string[0]=1; //5 {' ]1 l" X! n3 I- j: u
s_section->dir[0]=1;
3 Q3 A+ m8 D. i* {; c& X s_section->id[0]=line;// //截线地址, A8 k/ E$ t$ y) t, v' f/ B
% u6 {/ [" I- C8 b# r& ~: }) X// s_spine->num=0;
" p* @ A) H9 ^6 m
; M x8 o8 r9 l% i$ F/ G5 {8 n$ A //方向6 q( X9 r9 O( N' B9 b" y
orientation.method=3;
1 X& a8 [; y# G$ T$ v orientation.inter=inter;
* K( M7 S1 O& V, c% o5 c! E# ^2 | orientation.id=NULL_TAG; n( Y% P% n5 S6 ]' ~7 ?
orientation.value[0]=0;9 N; {- y3 \3 r
orientation.value[1]=0;9 P" G) S" C C1 S: i0 |
orientation.value[2]=0;
% Z) x$ _4 B7 ~3 O S) x A6 V; Z* p orientation.s_curve->num=1;
" M+ U v0 k n& e I- p orientation.s_curve->string[0]=1;( z0 s+ ]$ G( H( [9 G1 q
orientation.s_curve->dir[0]=1;" { d& j7 e$ G. J
orientation.s_curve->id[0]=edge_blk[0];0 U- }+ j# F n) _3 Z3 t4 g
@0 h) @9 w5 ?6 q, O8 O( e4 o //缩放比例
, k! `" ^, K* W0 F& x scaling.method=1;
5 d- b$ Y$ h: M4 G6 E9 n5 s scaling.id=NULL_TAG;/ g# v/ L% g% ^! O! D
scaling.inter=inter;
8 }" y" Z% ]# A0 v) s8 y2 l scaling.value[0]=0.5;& V' q" [' k' {* V8 H
scaling.s_curve=NULL;
9 [$ e$ z1 \& k* R
. ?$ `5 b) F* F0 n% Q/ O% ^* x UF_MODL_create_sweep(s_guide,s_section,s_spine,&orientation,
/ w4 K8 l( j7 N9 u1 J &scaling,&alignment,&inter,&body_type,boolean,tol,&body_obj_id); |