马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我想用如下的程序生成一个图形,编译,连接都通过了,可是图形就是出不来,为什么?请版主及各位高人不吝赐教!帮帮忙!
程序如下:
#include <stdio.h>
#include <uf.h>
#include <uf_modl.h>
#include <uf_disp.h>
#include <uf_part.h>
#define UF_CALL(X) (report( __FILE__, __LINE__, #X, (X)))
static int report( char *file, int line, char *call, int irc)
{
if (irc)
{
char messg[133];
printf("%s, line %d: %s\n", file, line, call);
(UF_get_fail_message(irc, messg)) ?
printf(" returned a %d\n", irc) :
printf(" returned error %d: %s\n", irc, messg);
}
return(irc);
}
static void do_ugopen_api(void)
{
double origin[3] = {0.0, 0.0, 0.0};
double orig_hole[3] = {0.0, 0.0, 12};
double orig_hole3[3] = {0.0, -80, 9.5};
double orig_hole2[3] = {0.0, -80, 0.0};
double direction[3] = {0.0, 0.0, 1.0};
char *h = "20";
char *D = "108";
char *h1 = "12";
char *d1 = "48";
char *h2 = "10.5";
char *d22 = "8";
char *d3 = "16";
char *d2 = "10.5";
char *h22 = "9.5";
char *d = "42";
char *part_name="cover";
UF_FEATURE_SIGN create = UF_NULLSIGN;
UF_FEATURE_SIGN sub = UF_NEGATIVE;
tag_t cover_id, hole_id, hole1_id, hole2_id, hole3_id,feat_obj,part;
uf_list_p_t feat_list;
int units = 1;
UF_CALL(UF_PART_new(part_name, units, &part))
|