iCAx开思网
标题:
【求助】 关于UF_MODL_create_curve_mesh
[打印本页]
作者:
qingwufy
时间:
2004-3-16 14:57
标题:
【求助】 关于UF_MODL_create_curve_mesh
各位高手:
我在做ug二次开发,再使用UF_MODL_create_curve_mesh时出现了问题,
运行时出现的错误如下图所示.
我的程序如下:
UF_STRING_p_t s_prim;
s_prim->num=7;
s_prim->string[0]=7;
s_prim->string[1]=7;
s_prim->string[2]=7;
s_prim->string[3]=7;
s_prim->string[4]=7;
s_prim->string[5]=7;
s_prim->string[6]=7;
s_prim->dir[0]=1;
s_prim->dir[1]=1;
s_prim->dir[2]=1;
s_prim->dir[3]=1;
s_prim->dir[4]=1;
s_prim->dir[5]=1;
s_prim->dir[6]=1;
s_prim->id[0]=spline1;
s_prim->id[1]=spline2;
s_prim->id[2]=spline3;
s_prim->id[3]=spline4;
s_prim->id[4]=spline5;
s_prim->id[5]=spline6;
s_prim->id[6]=spline7;
UF_STRING_p_t s_cross;
s_cross->num=4;
s_cross->string[0]=7;
s_cross->string[1]=7;
s_cross->string[2]=8;
s_cross->string[3]=8;
s_cross->dir[0]=1;
s_cross->dir[1]=1;
s_cross->dir[2]=1;
s_cross->dir[3]=1;
s_cross->id[0]=spline8;
s_cross->id[1]=spline9;
s_cross->id[2]=spline10;
s_cross->id[3]=spline11;
UF_STRING_p_t s_spine;
s_spine->num=0;
int end_point=0;
int emphasis=1;
int body_type=1;
int spline_pts=1;
UF_FEATURE_SIGN boolean=UF_NULLSIGN;
double tol[3]={0.001, 0.01, 0.01};
tag_t c_face_id[4]={spline1,spline7,spline8,spline10};
int c_flag[4]={0,0,0,0 };
tag_t * blade;
UF_MODL_create_curve_mesh( s_prim, s_cross,s_spine, &end_point,
[$emphasis, &body_type, &spline_pts,boolean, tol, c_face_id, c_flag, blade)]
注1:spline1~spline11为曲线.
注2:UF_STRING_p_t数据结构中 int string[ ]应该为什么内容??是各曲线id的
长度吗??指针end_point, emphasis, body_type, spline_pts应该付值.
请各位高手指点!!!!!
作者:
tsingtsang
时间:
2004-3-18 08:04
没具体用过这个函数,临时看了看
1、 UF_STRING_p_t s_prim;
s_prim->num=7;
s_prim->string[0]=7;
s_prim->string[1]=7;
s_prim->string[2]=7;
s_prim->string[3]=7;
s_prim->string[4]=7;
s_prim->string[5]=7;
s_prim->string[6]=7;
string[] 为ID数组中的每个元素所包含items 的个数,举例:string[0]表示id[0]里的curve的个数,即由多少个 曲线段来组成一条Prim Curve.
2、Input的东东最好都附上初值
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3