首页 技术 正文
技术 2022年11月7日
0 收藏 540 点赞 959 浏览 1906 个字
 NX9+VS2012     #include <uf.h>
#include <uf_modl.h>
#include <uf_obj.h>
#include <uf_ui.h> UF_initialize(); //创建块
UF_FEATURE_SIGN Sign = UF_NULLSIGN;
double CornerPt[] = {0.0, 0.0, 0.0};
char *EdgeLen[] = {"", "", ""};
tag_t BlkTag = NULL_TAG;
UF_MODL_create_block1(Sign, CornerPt, EdgeLen, &BlkTag); //============================================== //特征找体
tag_t BodyTag = NULL_TAG;
UF_MODL_ask_feat_body(BlkTag, &BodyTag); //把体设置成红色
UF_OBJ_set_color(BodyTag, ); //================================================
/*
//特征找边
uf_list_p_t EdgeList;
UF_MODL_ask_feat_edges(BlkTag, &EdgeList); //获取链表数量
int Count;
UF_MODL_ask_list_count(EdgeList, &Count); UF_UI_open_listing_window();
char msg[256];
sprintf_s(msg, "当前体有%d条边\n", Count);
UF_UI_write_listing_window(msg); for (int i = 0; i < Count; i++)
{
tag_t EdgeTAG = NULL_TAG;
UF_MODL_ask_list_item(EdgeList, i, &EdgeTAG);//获得每条边的tag
sprintf_s(msg, "tag=%d\n", EdgeTAG);
UF_UI_write_listing_window(msg);
}
//删除链表
UF_MODL_delete_list(&EdgeList);
*/
//===========================================
/*
//特征找方向
double DirX[3];
double DirY[3];
UF_MODL_ask_feat_direction(BlkTag, DirX, DirY); UF_UI_open_listing_window();
char msg[256];
sprintf_s(msg, "%f, %f, %f\n%f, %f, %f", DirX[0], DirX[1], DirX[2], DirY[0], DirY[1], DirY[2]);
UF_UI_write_listing_window(msg);
*/
//==============================================
/*
//特征找面
uf_list_p_t FaceList;
UF_MODL_ask_feat_faces(BlkTag, &FaceList); //获取链表数量
int Count;
UF_MODL_ask_list_count(FaceList, &Count); UF_UI_open_listing_window();
char msg[256];
sprintf_s(msg, "当前体有%d个面\n", Count);
UF_UI_write_listing_window(msg); for (int i = 0; i < Count; i++)
{
tag_t FaceTAG = NULL_TAG;
UF_MODL_ask_list_item(FaceList, i, &FaceTAG);//获得每个面的tag
sprintf_s(msg, "tag=%d\n", FaceTAG);
UF_UI_write_listing_window(msg);
}
//删除链表
UF_MODL_delete_list(&FaceList);
*/
//================================================
/*
//获取特征的时间戳记名字
char *FeatureName;
UF_MODL_ask_feat_name(BlkTag, &FeatureName); UF_UI_open_listing_window();
UF_UI_write_listing_window(FeatureName); UF_free(FeatureName);
*/
UF_terminate();
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,001
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,513
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,359
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,142
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,772
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,850