NX二次开发 UFUN桥接曲线 UF_CURVE_create_bridge_feature
本代码由里海提供
//NX二次开发 UFUN桥接曲线 UF_CURVE_create_bridge_feature
#include "me.hpp"
#include <stdio.h>
#include <string.h>
#include <uf.h>
#include <uf_ui.h>
#include <uf_disp.h>
#include <uf_object_types.h>
#include <uf_obj.h>
#include <uf_modl.h>
#include <uf_curve.h>
#include <uf_trns.h>
#include <uf_view.h>
#include <uf_vec.h>
#include <uf_part.h>
static void map_abs2view(double c[3])
{
char vname[30];
double abs_mx[9] = { 0,0,0, 1,0,0, 0,1,0 };
double vw[12] = { 0,0,0 };
double mx[12];
int irc;
UF_CALL(uc1653(vname));
UF_CALL(uc6433(vname, &vw[3]));
uf5940(abs_mx, vw, mx, &irc);
uf5941(c, mx);
}
static void map_view2abs(double c[3])
{
char vname[30];
double abs_mx[9] = { 0,0,0, 1,0,0, 0,1,0 };
double vw[12] = { 0,0,0 };
double mx[12];
int irc;
UF