iCAx开思工具箱
标题:
关于布尔运算UF_MODL_unite_bodies_with_retained_options
[打印本页]
作者:
a0806
时间:
2014-6-20 12:12
标题:
关于布尔运算UF_MODL_unite_bodies_with_retained_options
#include <uf.h>
#include <uf_ui.h>
#include <uf_exit.h>
#include "uf_modl.h"
extern DllExport void ufusr( char *parm, int *returnCode, int rlen )
{
/* Initialize the API environment */
if( UF_initialize() )
{
/* Failed to initialize */
return;
}
UF_FEATURE_SIGN sign = UF_NULLSIGN;
double origin[3] = {0,0,0};
char* height = "5";
char* diam = "8";
double direction[3] = {0,0,5};
tag_t cyl1;
UF_MODL_create_cyl1(sign,origin,height,diam,direction,&cyl1);
char* height2 = "50";
char* diam2 = "4";
tag_t cyl2;
UF_MODL_create_cyl1(sign,origin,height2,diam2,direction,&cyl2);
tag_t cyl_ent;
logical retain_target_body=FALSE;
logical retain_tool_body=FALSE;
UF_MODL_unite_bodies_with_retained_options (cyl1,cyl2,retain_target_body,retain_tool_body,&cyl_ent);
/* Terminate the API environment */
UF_terminate();
}
extern int ufusr_ask_unload( void )
{
return( UF_UNLOAD_IMMEDIATELY );
}
作者:
a0806
时间:
2014-6-20 12:12
但是把两个没有没有参数的实体,进行遍历选中,是可以进行布尔的,
不知道什么原因,
请大侠们 指点undefined
作者:
a0806
时间:
2014-6-22 09:02
搞定了
UF_MODL_ask_feat_body(cyl_jt1,&cyl_jt1); //从特征feature中取出body
UF_MODL_unite_bodies(cyl_jt1,cyl_jt2); //布尔运算,求和
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3