|
用平面去截一个特征(比如圆柱),求截面曲线,我用下面的代码怎么生成不了截面曲线?请各位帮忙看看错在什么地方?谢谢了5 s; `& V: {. P% u" g. ]
tag_t display_tag;! [) |, j% u1 y+ l5 x H' z$ m
tag_t section_curves;5 p( t5 h" n2 o& P2 y* l2 i
char sMessage[]="选择几何特征";
* L( }' j9 K, o* b int iCount,response;% w- ]+ g1 D0 k0 \- `; F
tag_t *feature;
! ~2 ~. i3 N6 v. X9 ^ UF_UI_select_feature(sMessage,NULL,&iCount,&feature,&response);//指定特征几何体
/ X% w. w. P# h& y, W% s' P" t) R9 w6 u" ?
double orientation[9]={0,0,0,0,0,0,0,0,0};
% Z$ m& w( v! n5 h' i double origin[3]={0,0,0}; y' r% O1 o4 |6 a
double pts[6]={0,0,0,0,0,0};
# u0 p- f7 z, \& Z$ Z int error_code=0;
1 G% [ v( h- [/ V/ r9 h9 P! n! z: Z$ a int mode,display;
- ^4 \& y: N' ?& P tag_t plane_eid;
. a* `$ m) x q* T9 Z* o+ F* l/ p mode=1;
) ^( X$ v9 E. G" j$ {2 o display=0;
4 f, J$ ]+ X1 x, e error_code=UF_UI_specify_plane("指定平面",&mode,display,&response,orientation,origin,&plane_eid);//调用拾取平面对话框
6 |, @6 l2 M: O% _$ h0 m: Z
! p$ |; ?& l8 y# T! ~ UF_CURVE_section_planes_data_t planes_data={&plane_eid,1};
1 b2 O0 G C# g3 f/ Q3 d7 ]# W3 Q
! r7 i0 G \7 d) ?' c$ w UF_CURVE_section_general_data_t objects_section={feature,1,0,1,2,0.1}; 5 E5 x* ~% M5 i( Z4 ~+ ]$ F3 \
4 D3 ~! z0 A# Z0 i0 k& Z$ I UF_CURVE_section_from_planes (&objects_section,&planes_data, §ion_curves); //生成截面线 |
|