首页 > 其他 > 详细

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

时间:2020-07-05 20:35:15      阅读:47      评论:0      收藏:0      [点我收藏+]
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日

技术分享图片

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!