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/ |