|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
用过创建相对基准面的朋友们看一下下面这段程序
char *edge_len[3]= {"50","50","50"};
double origin[3]={0.0,0.0,0.0}, ref_pt[3] = {0.0,0.0,0.0};
UF_FEATURE_SIGN sign=UF_NULLSIGN;
int num_refs = 1;
int pt_select[3] = {UF_MODL_EDGE, UF_MODL_EDGE, UF_MODL_EDGE};
int which_plane, num_dplanes;
char *angle_string = "0.0", *offset_string= "20.0";
tag_t block_tag, face_tag, dplane_tag[2], object_tags[3];
uf_list_p_t face_list;
UF_PART_new("d:\\block.prt",1,&block_tag);
UF_MODL_create_block1(sign,origin, edge_len, &block_tag);
UF_MODL_ask_feat_faces(block_tag, &face_list);
UF_MODL_ask_list_item(face_list, 5, &face_tag);
UF_MODL_delete_list(&face_list);
object_tags[0]= face_tag;
which_plane = 0;
UF_MODL_create_relative_dplane(num_refs, object_tags ,pt_select,
which_plane, ref_pt, angle_string,
offset_string, &num_dplanes, dplane_tag);
只能创建长方体,但是没有基准面,不知是怎么回事 |
|