iCAx开思网
标题:
问UF_CURVE_create_arc_center_radius函数
[打印本页]
作者:
waterfish
时间:
2005-8-28 21:25
标题:
问UF_CURVE_create_arc_center_radius函数
extern UFUNEXPORT int UF_CURVE_create_arc_center_radius
(
tag_t center, /* <I> tag of center */
double radius, /* <I> value of radius */
tag_t help_point, /* <I> point to define the start orientation */
UF_CURVE_limit_p_t limit_p[2], /* <I> extension limits */
tag_t support_plane, /* <I> tag of support plane of the arc */
logical is_asso, /* <I> true - if associative, false - if not associative */
tag_p_t arc_feature_id /* <O> if is_asso == TRUE - object identifier of new associtive arc feature */
/* <O> if is_asso == FALSE - object identifier of new associtive arc */
);
中参数
UF_CURVE_limit_p_t limit_p[2], /* <I> extension limits */
是什么东西
我们程序是这样的,不好使
其中有些参数搞不懂什么意思,
请高手指教
tag_t center;
double point_center[3]={0,0,0};
UF_CURVE_create_point(point_center,[$center)]
//////
double radius;
radius=1;
//////
tag_t help_point;
double point_help[3]={0,1,0};
UF_CURVE_create_point(point_help,[$help_point)]
//////
UF_CURVE_limit_p_t limit_p[2];
UF_CURVE_limit_t limit_t[2];
limit_p[0]=[$limit_t[0]]limit_p[1]=[$limit_t[1]]
// 下面是它的成员
// 下面几个不知道有什么用。
UF_CURVE_limit_type_e limit_type1,limit_type2;
limit_type1=UF_CURVE_limit_value;
limit_type2=UF_CURVE_limit_value;
double value1,value2;
value1=0;
value2=90;
tag_t limiting_obj1,limiting_obj2;
double point_limiting_obj1[3]={1,0,0};
double point_limiting_obj2[3]={0,1,0};
UF_CURVE_create_point(point_limiting_obj1,[$limiting_obj1)]
UF_CURVE_create_point(point_limiting_obj2,[$limiting_obj2)]
UF_CURVE_help_data_s help_data1,help_data2;
UF_CURVE_help_data_type_e help_data_type1,help_data_type2;
help_data_type1=UF_CURVE_help_data_value;
help_data_type2=UF_CURVE_help_data_value;
double value11[3]={1,0,0};
double value12[3]={0,1,0};
help_data1.help_data_type=help_data_type1;
//help_data1.value=value11;
help_data1.value[0]=1;help_data1.value[1]=0;help_data1.value[2]=0;
//help_data1.parameter=1;
help_data2.help_data_type=help_data_type2;
//help_data2.value=value12;
help_data2.value[0]=0;help_data2.value[1]=1;help_data2.value[2]=0;
//help_data2.parameter=2;
limit_p[0]->limit_type=limit_type1;
limit_p[0]->value=value1;
limit_p[0]->limiting_obj=limiting_obj1;
limit_p[0]->help_data=help_data1;
limit_p[1]->limit_type=limit_type2;
limit_p[1]->value=value2;
limit_p[1]->limiting_obj=limiting_obj2;
limit_p[1]->help_data=help_data2;
//////
tag_t plane;
double origin_point[3];
double pl1_normal[3];
double pl2_normal[3];
tag_t plane1_tag;
origin_point[0] = 0.0;
origin_point[1] = 0.0;
origin_point[2] = 0.0;
pl1_normal[0] = 0.0;
pl1_normal[1] = 0.0;
pl1_normal[2] = 1.0;
UF_MODL_create_plane(origin_point, pl1_normal, [$plane1_tag)]
plane=plane1_tag;
logical is_asso;
is_asso=true;
tag_t arc;
UF_CURVE_create_arc_center_radius (
center,
radius,
help_point,
limit_p,
plane,
is_asso,
[$arc )]
UF_terminate();
return (UF_MB_CB_CONTINUE);
}
作者:
nickler
时间:
2005-8-29 20:39
我也想问啊
键盘兄,帮忙啊
作者:
ahutxiaxue
时间:
2008-6-4 16:10
标题:
高手帮忙啊
高手帮忙啊 &&&&
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3