iCAx开思网

标题: 在合并实体中遇到的问题(ug api) [打印本页]

作者: yester    时间: 2010-1-3 20:25
标题: 在合并实体中遇到的问题(ug api)
最近小弟在尝试着加入二次开发的队伍中来,因为以前有点c语言的底子,所以选择了ugopenapi
写了小段代码,实体已经做出无误,但是实体合并始终无法做出,请大家指点。

double mould_dmfb_create_org[3]={0.0,0.0,0.0},fangxiang[3]={0,0,1};
  char *mould_dmfb_chicun[3]={"100","120","20"},*height="20",,*zhijing="50";
  tag_t fangkuai,,yuanzhu;
  int i_err;
  
   i_err=UF_MODL_create_block1(UF_NULLSIGN,mould_dmfb_create_org,mould_dmfb_chicun,&fangkuai);
   i_err=UF_MODL_create_cyl1(UF_NULLSIGN,mould_dmfb_create_org,height,zhijing,fangxiang,&yuanzhu);
  i_err=UF_MODL_unite_bodies(fangkuai,yuanzhu);
编译无误
但是合并实体无法进行
请大家指点
作者: yester    时间: 2010-1-3 22:26
还是没人回答呀!!!
作者: look_tfq    时间: 2010-1-5 11:08
The sign of the operation to be performed.
UF_NULLSIGN = create new target solid
UF_POSITIVE = add to target solid
UF_NEGATIVE = subtract from target solid
UF_UNSIGNED = intersect with target solid

兄弟,看仔细参数说明再做。
说明文件没仔细看哦
作者: ffhi    时间: 2010-1-5 11:48
关键词在bodies,相加的是体,不是特征。
解决办法:使用UF_MODL_ask_feat_body(),获得这两个特征的体,再相加。
作者: yester    时间: 2010-1-6 19:10
4# ffhi
兄弟谢谢
我去试下
我一直以为这样就可以了的.
作者: yester    时间: 2010-1-6 19:11
look_tfq 发表于 2010-1-5 11:08
The sign of the operation to be performed.
UF_NULLSIGN = create new target solid
UF_POSITIVE = add to target solid
UF_NEGATIVE = subtract from target solid
UF_UNSIGNED = intersect with target  ...

谢谢兄弟
虽然这个不是我要的答案
作者: yester    时间: 2010-1-6 19:34
5# yester
调试已成功,谢谢你呀!!
作者: ffhi    时间: 2010-1-7 09:15
7# yester
不客气,大家一起进步。




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3