返回1干涉,返回0和-1不干涉
int is_Clash(PK_TOPOL_t target,PK_TOPOL_t tool)
{
if(!target){return-1;}
if(!tool){return -1;}
PK_TRANSF_t tf1[1]={PK_ENTITY_null};
PK_TRANSF_t tf2[1]={PK_ENTITY_null};
PK_TOPOL_clash_o_t options;
PK_TOPOL_clash_o_m(options);
int n_clash;
PK_TOPOL_clash_t *clashes;
if(PK_TOPOL_clash(1,&target,tf1,1,&tool,tf2,&options,&n_clash,&clashes)){return -1;}
if(n_clash>0){return 1;}
return 0;
}
该博客探讨了如何在NX二次开发中进行对象干涉判断,详细解释了返回值1表示干涉,而0和-1则表示不干涉的情况。

3015

被折叠的 条评论
为什么被折叠?



