C+++
//用户代码
Point3d point = manip0->Origin(); //获取方位器的原点
Vector3d manip0X = manip0->XAxis(); //获取方位器的X方向
Vector3d manip0Y = manip0->YAxis(); //获取方位器的Y方向
double insertPinOrigin[3] = { point.X, point.X, point.Z }; //方位器原点Point3d类型转double型
double ufun_X[3] = { manip0X.X, manip0X.Y, manip0X.Z }; //方位器X轴Vector3d类型转double型
double ufun_Y[3] = { manip0Y.X, manip0Y.Y, manip0Y.Z }; //方位器Y轴Vector3d类型转double型
double ufun_Z[3]; //定义ufun_Z轴
UF_VEC3_cross( ufun_X, ufun_Y, ufun_Z ); //通过叉乘求Z轴
Vector3d manip0Z ( ufun_Z[0], ufun_Z[1], ufun_Z[2] ); //Z轴double型转Vector3d
怡宁塑胶模具设计