快捷导航 上传作品

[c++] uf基准面、基准轴

[复制链接]
梅雷工具箱发表于 2015-6-25 14:06:26 | 显示全部楼层 |阅读模式



uf基准面、基准轴

#include <uf_modl.h>

/* TODO: Add your application code here */


double point[3];
double direction[3];
tag_t  dplane_tag;
point[0] = 0.0;//参考点
point[1] = 0.0;
point[2] = 0.0;
direction[0] = 1.0;//法矢方向
direction[1] = 0.0;
direction[2] = 0.0;
UF_MODL_create_fixed_dplane ( point, direction, &dplane_tag );//生成固定基准面
                                                                                                                                         

tag_t daxis_tag;       
double point1[ 3 ];
double point2[ 3 ];
point1[0]=0.0;
point1[1]=0.0;
point1[2]=0.0;
point2[0]=0.0;
point2[1]=0.0;
point2[2]=1.0;
UF_MODL_create_fixed_daxis ( point1, point2,  &daxis_tag );//生成固定基准轴
               



        /* Terminate the API environment */
_____________________________________________________________________________ _

中磊UG二次开发教程 梅雷著 qq1821117007
学UG就上UG网 http://www.9sug.com/
就上UG网淘宝直营店
回复

使用道具 评分 举报

您需要登录后才可以回帖 登录 | 注册UG网

本版积分规则