zoukankan      html  css  js  c++  java
  • 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日

  • 相关阅读:
    clean code
    jenkins
    获取目录下的文件名称
    bootstrap-select 下拉互斥
    supervisord
    正则表达式
    Docker
    git
    goland工具
    小程序 swiper 轮播图滚动图片 + 视频
  • 原文地址:https://www.cnblogs.com/nxopen2018/p/13251518.html
Copyright © 2011-2022 走看看