|
我的做法: 编译通过请参考
1 ^6 T: t3 F! z! z, C int flag, i,res,inx,count,response;/ H9 u6 D" w9 O4 ?- i4 c' o7 J7 c
tag_p_t objects,ExtrudeObjects;' w2 M2 y; a) i! y* S
tag_t lineTag,featureTag, bodyTag,chamfer_tag;9 Y, n+ Y" _& ?. b1 |1 o
uf_list_p_t edgeLst,lineLs,features; // --链表变量定义7 G, Z/ U+ v! Y ?8 u9 K) x
8 V, h# v2 K4 A7 T* X3 l& v; [6 \, H
char title[] = "User Title";7 T/ S O; N4 {2 k+ |
char cue[] = "Select Objects";$ R' J& T: E: H4 A4 H8 g
char *limit1[2] = {"0.0", "3"}; // 开始到结束点=高度3 a% H+ v+ ~( p+ l2 k6 p. ?/ E
double direction[3] = {0.0,0.0,1.0}; // 沿着Z轴方向拉伸. @0 g6 s% D4 l0 ]% V
2 ^; d4 p) [3 ~* }/ w
UF_FEATURE_SIGN create = UF_NULLSIGN;6 I$ B; s7 X; K2 A4 U
double ref_pt[3],Hight;
' O. e9 L# e6 G8 Y char Temp[200]="";
. j# `; Z6 b" @7 c' s) R//-----以上变量用不到请自动过滤) j G2 a3 u' ?" f# J/ O
--( t% s9 U/ \ a, O# _4 i4 W% s
// 创建第3条直线. ] s7 }) \! M7 e" V
UF_CURVE_create_line(&line3_coords,&line_tag);
- |0 X2 D' N. H7 C! T9 D9 b( ` UF_MODL_put_list_item(lineLs, line_tag);+ S* X- @7 l0 U4 ?: v2 O! i& L+ f6 t
8 o" v+ h4 z. f7 i
// 创建第4条直线
% V b) m7 A; B2 l1 ^% b UF_CURVE_create_line(&line4_coords,&line_tag);
5 D+ ^" o: f& U9 q+ s$ m* h UF_MODL_put_list_item(lineLs, line_tag); : P6 r5 {) n1 d; j
3 I3 u0 B2 g! h% h
//--下面应该是将封闭的4条线拉伸成一个整体 : a& I; c: V' z
UF_MODL_create_extruded(lineLs, "0", limit1,
- c& ]: o; p' ]1 D ref_pt, direction, create, &features);
* v: S' i" j4 ?* ]: U: l UF_MODL_delete_list(&lineLs); |
|