NX二次开发-UFUN获取点在面上的向量方向UF_MODL_ask_face_props【转载】
NX11+VS2013
#include <uf.h>
#include <uf_ui.h>
#include <uf_modl.h>
#include <uf_curve.h>
UF_initialize();
//点构造器
char sCue[] = "点构造器";
UF_UI_POINT_base_method_t base_method = UF_UI_POINT_INFERRED;
tag_t tPoint = NULL_TAG;
double sBasePoint[] = { 0, 0, 0 };
int iRespone;
UF_UI_point_construct(sCue, &base_method, &tPoint, sBasePoint, &iRespone);
//获取点在面上U,V方向的位置
tag_t face_id = 49138;
double ref_pnt[3];
ref_pnt[0] = sBasePoint[0];
ref_pnt[1] = sBasePoint[1];
ref_pnt[2] = sBasePoint[2];
double parm[2];
double face_pnt[3];
UF_MODL_ask_face_parm(face_id, ref_pnt, parm, face_pnt);
//获取点在面上的向量方向
double point[3];
double u1[3];
double v1[3];
dou