NX11+VS2013 #include <uf.h> #include <uf_csys.h> #include <uf_mtx.h> UF_initialize(); //输入X向量Y向量输出一个3*3矩阵 double XVec[3] = { 1.0, 0.0, 0.0 }; double YVec[3] = { 0.0, 1.0, 0.0 }; double Mtx[9]; UF_MTX3_initialize(XVec, YVec, Mtx); //创建一个3 x 3矩阵 tag_t MatrixID = NULL_TAG; UF_CSYS_create_matrix(Mtx, &MatrixID); //创建CSYS坐标系 double CsysOrigin[3] = { 10.0, 10.0, 10.0 }; tag_t CsysId = NULL_TAG; UF_CSYS_create_csys(CsysOrigin, MatrixID, &CsysId); //设置坐标系原点 double origin[3] = { 100, 100, 100 }; UF_CSYS_set_origin(CsysId, origin); //设置WCS位置 UF_CSYS_set_wcs(CsysId); UF_terminate(); 阿飞 2021年10月28日
阿飞
2021年10月28日