C# NX二次开发:旋转UFUN函数使用详解

大家好,今天讲关于旋转UFUN函数使用。

UF_MODL_create_revolved (view source)

|-----------------|-------------------|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| uf_list_p_t | obj_id_list | Input | List of objects or one section builder object tag but not both, to be revolved |
| char * | limit [ 2 ] | Input | Limits of revolution. The declaration should be limit[2], where limit[0] = start angle and limit[1] = end angle. Angles are in degrees. |
| double | point [ 3 ] | Input | Point |
| double | direction [ 3 ] | Input | Revolution axis. |
| UF_FEATURE_SIGN | sign | Input | The sign of the operation to be performed. UF_NULLSIGN = create new target solid UF_POSITIVE = add to target solid UF_NEGATIVE = subtract from target solid UF_UNSIGNED = intersect with target solid |
| uf_list_p_t * | feature_list | Output to UF_*free* | List of feature identifiers created. This list must be freed by calling UF_MODL_delete_list. |

这个是旧版的旋转函数,里面虽然有可以使用布尔减,但是没有传入目标体的Tag值。所以他是默认减去一个体,这样会造成我们使用灵活性方面的困难,而下面这个新版的函数就没有这方面的问题了。

UF_MODL_create_revolved1 (view source)

|-----------------|-------------------|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| uf_list_p_t | obj_id_list | Input | List of objects or one section builder object tag but not both, to be revolved |
| char * | limit [ 2 ] | Input | Limits of revolution. The declaration should be limit[2], where limit[0] = start angle and limit[1] = end angle. Angles are in degrees. |
| double | point [ 3 ] | Input | Point |
| double | direction [ 3 ] | Input | Revolution axis. |
| UF_FEATURE_SIGN | sign | Input | The sign of the operation to be performed. UF_NULLSIGN = create new target solid UF_POSITIVE = add to target solid UF_NEGATIVE = subtract from target solid UF_UNSIGNED = intersect with target solid |
| tag_t | target_body | Input | Boolean target |
| uf_list_p_t * | feature_list | Output to UF_*free* | List of feature identifiers created. This list must be freed by calling UF_MODL_delete_list. |

倒数第二个参数就为目标体的tag值。

今天要讲的就是这么多,我们下篇文章再见。

散会

相关推荐
草莓熊Lotso22 分钟前
【数据结构初阶】--算法复杂度的深度解析
c语言·开发语言·数据结构·经验分享·笔记·其他·算法
海的诗篇_39 分钟前
前端开发面试题总结-JavaScript篇(二)
开发语言·前端·javascript·typescript
cccc来财1 小时前
Go中的协程并发和并发panic处理
开发语言·后端·golang
狐凄1 小时前
Python实例题:Python计算线性代数
开发语言·python·线性代数
惊鸿一博2 小时前
java_网络服务相关_gateway_nacos_feign区别联系
java·开发语言·gateway
Bruce_Liuxiaowei2 小时前
深入理解PHP安全漏洞:文件包含与SSRF攻击全解析
开发语言·网络安全·php
成工小白2 小时前
【C++ 】智能指针:内存管理的 “自动导航仪”
开发语言·c++·智能指针
sc写算法2 小时前
基于nlohmann/json 实现 从C++对象转换成JSON数据格式
开发语言·c++·json
Andrew_Xzw2 小时前
数据结构与算法(快速基础C++版)
开发语言·数据结构·c++·python·深度学习·算法
库库的里昂2 小时前
【C++从练气到飞升】03---构造函数和析构函数
开发语言·c++