void project_1() {
//创建块
UF_FEATURE_SIGN sign = UF_NULLSIGN;
double block_orign[3] = { 0.0,0.0,0.0 };
char* block_len[3] = { “100”,“100”,“100” };
tag_t blk_obj;
UF_MODL_create_block1(sign, block_orign, block_len, &blk_obj);
创建孔
//double hole_orgin[3] = { 0 };
//double hole_dirction[3] = { 10.0,10.0,10.0 };
//const char* hole_diam = “20”;
//const char* hole_depth = “50”;
//const char* angle = “0”;
//tag_t face_li;
//tag_t face_t1;
//tag_t* feature_obj_id;
//UF_MODL_create_simple_hole(hole_orgin,hole_dirction,hole_diam,hole_depth,angle,face_li,face_t1,feature_obj_id);
//创建圆柱
tag_t targ_tag;
double origin[3] = { 50.0,50.0,100.0 };
char* height = “100”;
char* diam = “50”;
double direction[3] = { 0.0,0.0,-1.0 };
UF_MODL_create_cyl1(UF_NEGATIVE,origin,height,diam,direction,&targ_tag);