NX二次开发-UFUN三点创建圆弧UF_CURVE_create_arc_thru_3pts

NX9+VS2012

#include <uf.h>
#include <uf_curve.h>


UF_initialize();

//三点创建圆弧
double first_point[3] = {-50.0, 0.0, 0.0};
double second_point[3] = {0.0, 50.0, 0.0};
double third_point[3] = {50.0, 0.0, 0.0};
tag_t arc_tag = NULL_TAG;
UF_CURVE_create_arc_thru_3pts(1, first_point, second_point, third_point, &arc_tag);

//创建三点整圆
double first_point1[3] = {-100.0, 0.0, 0.0};
double second_point1[3] = {0.0, 100.0, 0.0};
double third_point1[3] = {100.0, 0.0, 0.0};
tag_t arc_tag1 = NULL_TAG;
UF_CURVE_create_arc_thru_3pts(2, first_point1, second_point1, third_point1, &arc_tag1);

UF_terminate();

Caesar卢尚宇
2020年7月5日

原文地址:https://www.cnblogs.com/nxopen2018/p/13251518.html