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值。

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

散会

相关推荐
kimnoic12 分钟前
Python数据库sqlite3图文实例详解
开发语言·python
老王爱玩车41 分钟前
文件操作从打开到缓冲区
c语言·开发语言·学习
SunnyDays10111 小时前
Java 合并 PDF 文件:完整合并、指定页面合并与流合并
java·开发语言·合并pdf
kimnoic2 小时前
Python操作xlwings的实例详解
开发语言·python
栗子~~2 小时前
java - logstash-logback-encoder 集成 demo
java·开发语言·logback
ESDWAN2 小时前
跨境网络频繁掉线怎么排查?从企业内网到 SD-WAN 链路的故障诊断
开发语言·网络·php
程序员zgh3 小时前
C++ erase() 函数用法
c语言·开发语言·c++·学习
lee_tianbai3 小时前
Java SSM 电影票预定系统|完整前后端项目,开箱即用(源码分享)
java·开发语言·数据库
迪丽热爱4 小时前
一、C语言概述与程序结构
c语言·开发语言·算法
HUIBUR科技4 小时前
AI中枢:打破数据孤岛与流程孤岛双重困境
开发语言·ai