文章作者:里海
简介:
创建简单孔特征 UF_MODL_create_simple_hole
效果:
代码:
#include "me.hpp"
extern DllExport void ufusr(char* parm, int* returnCode, int rlen)
{
UF_initialize();
double dPoint[3] = { 4.929432281, 6.249725657, 15.00000000 };
double dDir[3] = { 0, 0, -1.0 };
tag_t tagFace = 45189;
double dHoleDia = 10.0;
double dHoleDepth = 20.0;
double dAngle = 118.0;
tag_t tagHoleFeat = NULL_TAG;;
UF_MODL_create_simple_hole(dPoint, dDir, to_string(dHoleDia).c_str(),
to_string(dHoleDepth).c_str(), to_string(dAngle).c_str(), tagFace,
NULL_TAG, &tagHoleFeat);
UF_terminate();
}
extern int ufusr_ask_unload(void)
{
return(UF_UNLOAD_IMMEDIATELY);
}