文章作者:里海
来源网站:https://blog.csdn.net/WangPaiFeiXingYuan
简介:
UG\NX二次开发 平移变换 uf5943、uf5947
效果:
代码:
#include "me.hpp"
extern DllExport void ufusr(char* param, int* returnCode, int rlen)
{
UF_initialize();
//沿着X轴方向移动 20
double dDir[3] = { 20.0,0.0,0.0 };
double dMatrix[12] = { 0.0 };
//获取变换矩阵