具体代码如下:
UF_MODL_SWEEP_TRIM_object_t extrusion_trim_object;
char *extrusion_limits[2];
char *extrusion_offsets[2];
char extrusion_taper_angle[12];
char a[2][1024];
double extrusion_pt1[3]={0.0,0.0,0.0};
double extrusion_dir[3]={0.0,-1.0,0.0};
UF_FEATURE_SIGN extrusion_mode_sign = UF_POSITIVE;
tag_t *extrusion_objects;
int extrusion_obj_cnt;
tag_t extrusion_tag[1];
sprintf(a[0],"%f",0.0);
sprintf(a[1],"%f",0.0);
sprintf(extrusion_taper_angle,"%f",0.0);
extrusion_limits[0]=a[0];
extrusion_limits[1]=a[1];
extrusion_offsets[0]=a[0];
extrusion_offsets[1]=a[1];
extrusion_tag[0]=qiangti_oface_tag;
extrusion_trim_object.trim_objects=extrusion_tag;
extrusion_trim_object.trim_count=4;
extrusion_trim_object.sign=1;
UF_CALL(UF_MODL_create_extrusion(line1_tag, 4, &extrusion_trim_object,extrusion_taper_angle,extrusion_limits,extrusion_offsets,extrusion_pt1, false, true, extrusion_dir,extrusion_mode_sign,&extrusion_objects,&extrusion_obj_cnt));
UF_free(extrusion_objects);
其中,line1_tag为已画曲线的tag的数组名,qiangti_oface_tag是所要拉伸到的那个面的tag,为什么没有显示了?麻烦大家帮我看看了,急, |