首页 > 移动平台 > 详细

NX 二次开发,线性移动uf5943

时间:2019-12-09 20:51:53      阅读:170      评论:0      收藏:0      [点我收藏+]

 

#include <uf.h>
#include <uf_modl.h>
#include <uf_part.h>
#include <uf_modl_primitives.h>
#include <uf_object_types.h>
#include <uf_CSYS.h> 
#include <UF_VEC.h>
#include <UF_MTX.h>
#include <uf_trns.h>











	tag_t point_tag=NULL_TAG;
	double point[3]={0,0,0};
	UF_CURVE_create_point(point,&point_tag);//创建点
	/*----------------------------*/
	double matrix [16]; 
	double O1[3]={0.0,0.0,1.0};	//变换Z+1	
	tag_t  wsc_t2=NULL_TAG;         //变化后坐标tag	
	int    status;
	uf5943(O1,matrix);           //矩阵方法(线性)

	//矩阵的实现
	int numbers=1;      // 数量
	int  tran=2;        // 1 :移动 2 :复制
	int  layer=-1;      //  -1: 工作层
	int trace_curves=2; 
	uf5947(matrix,&point_tag,&numbers,&tran,&layer,&trace_curves,&wsc_t2,NULL,&status);
	UF_CSYS_set_wcs_display(1); //显示工作坐标
技术分享图片

 

NX 二次开发,线性移动uf5943

原文:https://www.cnblogs.com/liuxiaoqing1/p/12012664.html

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