NX拉伸实体实例 UF_MODL_create_extruded

拉伸实例代码:

static void do_ugopen_api(void)
{
    //例2:创建7条直线形成封闭区域做拉伸操作生成实体
    uf_list_p_t objects,features; 
    char * taper_angle="0.0";
    char * limit[2]={"10.0","20.0"};
    double point[3]={0.0,0.0,0.0};              //无效可以不写
    double direction[ 3 ]={0.0,0.0,1.0};        //拉伸方向
    UF_FEATURE_SIGN   sign=UF_NULLSIGN;         //布尔运算
    tag_t object_tag[7];

    UF_CURVE_line_t line_coords;   
    line_coords.start_point[0]=0;
    line_coords.start_point[1]=0;
    line_coords.start_point[2]=0;
    line_coords.end_point[0]=10;
    line_coords.end_point[1]=0;
    line_coords.end_point[2]=0;
    UF_CURVE_create_line(&line_coords,&object_tag[0]);
    line_coords.start_point[0]=0;
    line_coords.start_point[1]=0;
    line_coords.start_point[2]=0;
    line_coords.end_point[0]=0;
    line_coords.end_point[1]=10;
    line_coords.end_point[2]=0;
    UF_CURVE_create_line(&line_coords,&object_tag[1]);
    line_coords.start_point[0]=0;
    line_coords.start_point[1]=10;
    line_coords.start_point[2]=0;
    line_coords.end_point[0]=10;
    line_coords.end_point[1]=10;
    line_coords.end_point[2]=0;
    UF_CURVE_create_line(&line_coords,&object_tag[2]);
    line_coords.start_point[0]=10;
    line_coords.start_point[1]=10;
    line_coords.start_point[2]=0;
    line_coords.end_point[0]=10;
    line_coords.end_point[1]=0;
    line_coords.end_point[2]=0;
    UF_CURVE_create_line(&line_coords,&object_tag[3]);
    line_coords.start_point[0]=2;
    line_coords.start_point[1]=2;
    line_coords.start_point[2]=0;
    line_coords.end_point[0]=5;
    line_coords.end_point[1]=2;
    line_coords.end_point[2]=0;
    UF_CURVE_create_line(&line_coords,&object_tag[4]);
    line_coords.start_point[0]=5;
    line_coords.start_point[1]=2;
    line_coords.start_point[2]=0;
    line_coords.end_point[0]=2;
    line_coords.end_point[1]=5;
    line_coords.end_point[2]=0;
    UF_CURVE_create_line(&line_coords,&object_tag[5]);
    line_coords.start_point[0]=2;
    line_coords.start_point[1]=5;
    line_coords.start_point[2]=0;
    line_coords.end_point[0]=2;
    line_coords.end_point[1]=2;
    line_coords.end_point[2]=0;
    UF_CURVE_create_line(&line_coords,&object_tag[6]);

    // 对象加入到对象列表尾部
    UF_MODL_create_list(&objects);
    for (int i=0;i<=6;i++)
    {
        UF_MODL_put_list_item(objects,object_tag[i]);
    }

    UF_MODL_create_extruded (objects, taper_angle,limit, point,direction,sign,&features);//拉伸

}

运行结果:

 

转载于:https://www.cnblogs.com/design-by-zam/p/10518977.html

weixin_34236497
关注 关注
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
NX二次开发】创建扫描特征
王牌飞行员_里海的博客
08-28 177
扫描特征相关函数: 创建扫描特征的相关函数: 1.UF_MODL_create_extrude_trim_opts拉伸 2.UF_MODL_create_extrude_trim_opts1 拉伸 tag_t * extrude_array, //被拉伸的对象列表 int extrude_count, //拉伸对象数量 UF_MODL_SWEE...
Tips_and_Tricks_with_DirectX_9.pdf
03-10
Contents Preface vii About the Authors ix Introduction xix Section I—Geometry Manipulation Tricks 1 Using Vertex Shaders for Geometry Compression 3 Dean Calver Using Lookup Tables in Vertex Shaders 13 Carsten Wenzel Terrain Geomorphing in the Vertex Shader 18 Daniel Wagner 3D Planets on the GPU 33 Jesse Laeuchli Cloth Animation with Pixel and Vertex Shader 3.0 40 Kristof Beets Collision Shaders 58 Takashi Imagire Displacement Mapping 73 Tom Forsyth Section II — Rendering Techniques 87 Rendering Objects as Thick Volumes 89 Greg James Screen-aligned Particles with Minimal VertexBuffer Locking 107 O’dell Hicks Hemisphere Lighting with Radiosity Maps 113 Shawn Hargreaves iii Galaxy Textures 123 Jesse Laeuchli Turbulent Sun 127 Jesse Laeuchli Fragment-level Phong Illumination 131 Emil Persson Specular Bump Mapping on Pre-ps_1_4 Hardware 149 Matthew Halpin Voxel Rendering with PS_3_0 161 Aaron Burton Simulating Blending Operations on Floating-point Render Targets 172 Francesco Carucci Rendering Volumes in a Vertex & Pixel Program by Ray Tracing 177 Eli Z. Gottlieb Normal Map Compression 185 Jakub Klarowicz Drops of Water and Texture Sprites 190 Sylvain Lefebvre Advanced Water Effects 207 Kurt Pelzer Efficient Evaluation of Irradiance Environment Maps 226 Peter-Pike J. Sloan Practical Precomputed Radiance Transfer 232 Peter-Pike J. Sloan Advanced Sky Dome Rendering 240 Marco Spoerl and Kurt Pelzer Deferred Shading with Multiple Render Targets 251 Nicolas Thibieroz Meshuggah’s Effects Explained 270 Carsten Wenzel Layered Car Paint Shader 293 John Isidoro, Chris Oat, and Natalya Tatarchuk Motion Blur Using Geometry and Shading Distortion 299 Natalya Tatarchuk, Chris Brennan, Alex Vlachos, and John Isidoro Contents iv Simulation of Iridescence and Translucency on Thin Surfaces 309 Natalya Tatarchuk and Chris Brennan Floating-point Cube Maps 319 Arkadiusz Waliszewski Stereoscopic Rendering in Hardware Using Shaders 324 Thomas Rued Hatching, Stroke Styles, and Pointillism 340 Kevin Buchin and Maike Walther Layered Fog 348 Guillaume Werle Dense Matrix Algebra on the GPU 352 Ádám Moravánszky Section III — Software Shaders and Shader Programming Tips 381 Software Vertex Shader Processing 383 Dean P. Macri x86 Shaders–ps_2_0 Shaders in Software 396 Nicolas Capens SoftD3D: A Software-only Implementation of Microsoft’s Direct3D API 413 Oliver Weichhold Named Constants in Shader Development 432 Jeffrey Kiel Section IV — Image Space 437 Advanced Image Processing with DirectX 9 Pixel Shaders 439 Jason L. Mitchell, Marwan Y. Ansari, and Evan Hart Night Vision: Frame Buffer Post-processing with ps.1.1 Hardware 465 Guillaume Werle Non-Photorealistic Post-processing Filters in MotoGP 2 469 Shawn Hargreaves Image Effects with DirectX 9 Pixel Shaders 481 Marwan Y. Ansari Using Pixel Shaders to Implement a Mosaic Effect Using Character Glyphs 519 Roger Descheneaux and Maurice Ribble Contents v Mandelbrot Set Rendering 526 Emil Persson Real-Time Depth of Field Simulation 529 Guennadi Riguer, Natalya Tatarchuk, and John Isidoro Section V — Shadows 557 Soft Shadows 559 Flavien Brebion Robust Object ID Shadows 580 Sim Dietrich Reverse Extruded Shadow Volumes 587 Renaldas Zioma Section VI — 3D Engine and Tools Design 595 Shader Abstraction 597 Tom Forsyth Post-Process Fun with Effects Buffers 614 Tom Forsyth Shaders under Control (Codecreatures Engine) 625 Oliver Hoeller Shader Integration in the Gamebryo Graphics Engine 631 Scott Sherman, Dan Amerson, Shaun Kime, and Tim Preston Vertex Shader Compiler 650 David Pangerl Shader Disassembler 667 Jean-Sebastian Luce Index 675
UGnx二次开发的拉伸曲线
m0_72715159的博客
08-18 1042
设计拉伸曲线功能。 要求: 1)曲线由手工创建; 2)对话框上提供起始值、终止值、拉伸方向三个参数;
NX二次开发UF_MODL_create_extrusion 函数介绍
最新发布
王牌飞行员_里海的博客
04-11 660
创建一个挤压特性。如果输入字符串是关闭的,并且 Solid _ create 选项为 TRUE,则生成的主体为实体。否则将产生工作表主体。纸张不能变细,而且锥度 _ 角必须设置为0.0。UF _ MODL _ SWEEP _ TRIM _ object 结构用于定义修剪对象。只有在未指定 UF _ MODL _ SWEEP _ TRIM _ object 结构(NULL)的情况下,挤压限制才有效。区域点对应于选择相交对象后所选择的点。
NX二次开发-UFUN拉伸函数UF_MODL_create_extruded2
阿飞2018
12-11 316
NX二次开发-UFUN拉伸函数UF_MODL_create_extruded2
NX二次开发-UFUN拉伸函数UF_MODL_create_extruded
阿飞2018
12-11 565
NX二次开发-UFUN拉伸函数UF_MODL_create_extruded
NX二次开发 UFUN拉伸函数 UF_MODL_create_extruded2
梅雷的博客
01-31 122
NX二次开发 UFUN拉伸函数 UF_MODL_create_extruded2
NX二次开发-UFUN建模创建特征组UF_MODL_create_set_of_feature
阿飞2018
02-02 357
NX二次开发-UFUN建模创建特征组UF_MODL_create_set_of_feature
NX二次开发UF_MODL_create_set_of_feature 函数介绍
王牌飞行员_里海的博客
04-05 531
创建一个特性集。如果某些成员特性是不可浏览的,那么不可浏览的特性将被过滤掉。
UL 224:2021 Extruded Insulating Tubing
02-16
UL 224 STANDARD FOR SAFETY Extruded Insulating Tubing
Strain Activated Microstructure Evolution during Hot Plastic Flow of Extruded AZ80 Alloy
03-14
挤压态AZ80镁合金热塑性流变过程中的应变激发组织演变,任凌宝,尹冬弟,本文主要研究了AZ80挤压态镁合金在614K,10-4s-1条件下的应变诱发组织演变过程。随着应变量的增加可观察到明显的晶粒细化。...
Highly birefringent extruded elliptical-hole photonic crystal fibers with single defect and double defects
02-10
Highly birefringent elliptical-hole photonic crystal fibers (PCFs) with single defect and double defects are proposed, which are supposed to be achieved by extruding normal circular-hole PCFs based on...
Influence of Feed Moisture Content and Die Temperature on the Allergenic Potency of Extruded Soy Proteins
02-20
豆粕含水量和核心温度在挤压法处理大豆粕中对其过敏性的影响,米丽亚,约瑟夫,利用挤压法处理大豆粕,研究了豆粕含水量和挤压核心温度对大豆过敏性的影响。 文章针对这两个参数设计了2因素3水平的析因试验设计
NX二次开发-UFUN创建块UF_MODL_create_block
阿飞2018
11-27 402
NX二次开发-UFUN创建块UF_MODL_create_block
NX二次开发-UFUN创建固定的基准平面UF_MODL_create_fixed_dplane
阿飞2018
12-11 448
NX二次开发-UFUN创建固定的基准平面UF_MODL_create_fixed_dplane
UG/NX二开Siemens官方实例解析 4.9 EX_Modl_CreateExtruded(拉伸)
MarcoPro的博客
01-10 379
本系列文章主要讲解NXOpen UF API(简称ufun函数)的使用,之前看教学视频大都建议用ufun进行开发,这里西门子官方还专门给了一套系列文章来讲,说明官方也是特别推崇ufun。本人从事二开也有一段时间了,我的二开启蒙师父就特别喜欢用NXOpen API,用他的话来说“年少不知nxopen好,错把ufun当成宝”,其实就我个人而言,还是喜欢NXOPEN+ufun联合开发。本实例实现了曲线的拉伸,主要知识点如下:1、创建直线 theUfSession.Curve.CreateLine。
NX二次开发 UFUN创建从边缘拔模 UF_MODL_create_taper_from_edges
梅雷的博客
01-25 191
NX二次开发 UFUN创建从边缘拔模 UF_MODL_create_taper_from_edges
UF_MODL_create_extruded
07-08
`UF_MODL_create_extruded` 是 UG NX 中用于创建拉伸特征的函数。通过该函数,可以从一个或多个截面轮廓创建一个拉伸体。拉伸特征是在一个方向上沿着一个曲线或一个路径进行延伸形成的。 函数的语法为: ``` int UF...

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
写文章

热门文章

  • objcopy命令介绍 17219
  • 记录12款MacBook Pro MC946,A1398拆主板换新喇叭的过程 16274
  • mplayer中文字幕乱码问题 14551
  • org.xml.sax.SAXParseException XML解析异常 14464
  • HTML5 body设置全屏背景图片 如何让body的背景图片自适应整个屏----实战经验 14245

最新评论

  • 一个简单的Web音频数据可视化模块

    JeremyLi0: 播放器audio标签没有声音

  • 【转】 怎么刷入BOOT.IMG(刷机后开机卡在第一屏的童鞋请注意)-------不错不错

    人生!?: 我手机卡在第一屏,fastboot,recovery都进不去,反复重启现在准备送到售后表情包救砖的模块起不到作用。

  • Cocos Creator开发中访问节点和组件的方法总结

    m0_55481793: copy?

  • 能够使用浏览器打开手机端摄像头

    shuleijia: 我这样配置完,手机端浏览器还是打不开摄像头。。

  • MySQL查看所有视图的命令

    不脱发的计算机学弟: 谢谢表情包

您愿意向朋友推荐“博客详情页”吗?

  • 强烈不推荐
  • 不推荐
  • 一般般
  • 推荐
  • 强烈推荐
提交

最新文章

  • Control VS.NET IDE in your Project in design-time
  • pyqt5 开发环境
  • 【转】发布的QT程序无法显示图标和图片的问题
2019年376篇
2018年684篇
2017年930篇
2016年566篇
2015年434篇
2014年319篇
2013年306篇
2012年255篇
2011年218篇
2010年147篇
2009年127篇
2008年102篇
2007年73篇
2006年48篇
2005年25篇
2004年12篇

目录

目录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值

4617作文网山东大学周易大师女装注册商标起名大全祥字起名男孩名字史莱姆起什么名字的2021周易测今年运势周易八字起名免费取名易烊千玺周冬雨疑似恋爱生辰八字算命取名一次性餐具店铺起名周易64卦白话版起名集团周易起名网 免费8月24日八字算命欧性女孩起名算死命有声小说在线听用燕子起公司名字公司起名公司名子大全公司免费起名软件吗微商卖家起名复姓起名字中国周易起名大师谢咏周易玄干支哲学梁姓起名100分周公解梦梦见别人摘瓜周易免费生辰生辰八字起名周易手机号码测吉祥二手房起名大全集渭南起名的起名字那个软件可信周公解梦梦到有人给钱淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻让美丽中国“从细节出发”清明节放假3天调休1天男子给前妻转账 现任妻子起诉要回网友建议重庆地铁不准乘客携带菜筐月嫂回应掌掴婴儿是在赶虫子重庆警方辟谣“男子杀人焚尸”国产伟哥去年销售近13亿新的一天从800个哈欠开始男孩疑遭霸凌 家长讨说法被踢出群高中生被打伤下体休学 邯郸通报男子持台球杆殴打2名女店员被抓19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警两大学生合买彩票中奖一人不认账德国打算提及普京时仅用姓名山西省委原副书记商黎光被逮捕武汉大学樱花即将进入盛花期今日春分张家界的山上“长”满了韩国人?特朗普谈“凯特王妃P图照”王树国3次鞠躬告别西交大师生白宫:哈马斯三号人物被杀代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了房客欠租失踪 房东直发愁倪萍分享减重40斤方法“重生之我在北大当嫡校长”槽头肉企业被曝光前生意红火手机成瘾是影响睡眠质量重要因素考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼网友洛杉矶偶遇贾玲呼北高速交通事故已致14人死亡西双版纳热带植物园回应蜉蝣大爆发男孩8年未见母亲被告知被遗忘张立群任西安交通大学校长恒大被罚41.75亿到底怎么缴沈阳一轿车冲入人行道致3死2伤奥运男篮美国塞尔维亚同组周杰伦一审败诉网易国标起草人:淀粉肠是低配版火腿肠外国人感慨凌晨的中国很安全男子被流浪猫绊倒 投喂者赔24万杨倩无缘巴黎奥运男子被猫抓伤后确诊“猫抓病”春分“立蛋”成功率更高?记者:伊万改变了国足氛围奥巴马现身唐宁街 黑色着装引猜测

4617作文网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化