iCAx开思工具箱

标题: 【求助】曲线拉伸成面,求教我的源码那些错误? [打印本页]

作者: xyftxwd    时间: 2004-7-7 21:38
标题: 【求助】曲线拉伸成面,求教我的源码那些错误?
我的代码如下:
其中我已经成功创建了曲线。
  
int  object_count = 1;  
UF_MODL_SWEEP_TRIM_object_p_t trim_data = NULL;  
char taper_angle = '0';  
char *limits[2] ;  
char *offsets[2];  
char lm_1 = '0';  
limits[0] = [$lm_1]  
char lm_2 = '3';  
limits[1] = [$lm_2]  
char of_1 = '0';  
offsets[0] = [$of_1]  
char of_2 = '0';  
offsets[1] = [$of_2]  
double region_point[3] = {0.0,0.0,0.0};  
logical region_specified = false;  
logical  solid_creation = false;  
double direction[3] = {0.0,0.0,1.0};  
UF_FEATURE_SIGN sign = UF_NULLSIGN;  
tag_t *ex_features;  
int number_of_features;
  
reEdge =UF_MODL_create_extrusion(&ugcrv_id,object_count,trim_data,  
    &taper_angle,limits,offsets,region_point,region_specified,s
    olid_creation,direction,sign,[$ex_features,&number_of_features)]
作者: tari    时间: 2004-7-7 22:01
你用UF_get_fail_message()测试一下,看看哪里设置错了,你用下面的参数试试:
char *taper_angle =“0”;
作者: tari    时间: 2004-7-7 22:06
int object_count = 1;  
UF_MODL_SWEEP_TRIM_object_p_t trim_data = NULL;  
char *taper_angle = “0”;  
char *limits[2] ;  
char *offsets[2];  
limits[0] = “0”;  
limits[1] = “3” ;  
offsets[0] = “0”;  
offsets[1] = “0”;  
double region_point[3] = {0.0,0.0,0.0};  
logical region_specified = false;  
logical solid_creation = false;  
double direction[3] = {0.0,0.0,1.0};  
UF_FEATURE_SIGN sign = UF_NULLSIGN;  
tag_t *ex_features;  
int number_of_features;  
    
reEdge =UF_MODL_create_extrusion(&ugcrv_id,object_count,trim_data,  
    taper_angle,limits,offsets,region_point,region_specified,s  
    olid_creation,direction,sign,ex_features,&number_of_features);
作者: xyftxwd    时间: 2004-7-8 19:30
to tari:
     非常的感谢!!!成功了!看来我的C++太差了,需要恶补了。




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3