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 limit2, where limit0 = start angle and limit1 = 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 limit2, where limit0 = start angle and limit1 = 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值。

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

散会

相关推荐
Evand J2 分钟前
【论文复现】MATLAB例程,存在测距误差的WSN无锚点分布式自定位,《WSN中存在测距误差的无锚点分布式自定位方法》
开发语言·分布式·matlab·定位·导航·wsn
techdashen20 分钟前
kTLS 进入 rustls 组织:把 TLS 的数据面交给内核
开发语言·php
Lhappy嘻嘻36 分钟前
Java 并发编程(六)|并发进阶高频:CAS、锁升级
java·开发语言
techdashen38 分钟前
Arborium:把 tree-sitter 语法高亮打包成 Rust 文档生态的基础设施
开发语言·后端·rust
会周易的程序员1 小时前
microLog 后端开发指南
开发语言·c++·物联网·设计模式·日志·iot·aiot
Esaka_Forever1 小时前
Python 完整内存管理机制详解
开发语言·python·spring
星空露珠1 小时前
迷你世界UGc3.0脚本Wiki[剧情动画模块管理接口 Timeline]
开发语言·数据结构·算法·游戏·lua
未来之窗软件服务1 小时前
计算机考试-C语言 应用题—东方仙盟
c语言·开发语言·仙盟创梦ide·东方仙盟·计算机考试
想你依然心痛1 小时前
AtomCode在后端开发中的实战体验:Go微服务从零搭建
开发语言·微服务·golang
我是一颗柠檬1 小时前
【Java项目技术亮点】EXPLAIN深度分析与慢查询治理
android·java·开发语言