|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位高手:
我在做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应该付值.
请各位高手指点!!!!! |
|