当前位置: 首页 > article >正文

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

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

UF_MODL_create_revolved (view source)

uf_list_p_tobj_id_listInputList of objects or one section builder object tag
but not both, to be revolved
char *limit [ 2 ]InputLimits of revolution. The declaration should be
limit[2], where limit[0] = start angle and limit[1] =
end angle. Angles are in degrees.
doublepoint [ 3 ]InputPoint
doubledirection [ 3 ]InputRevolution axis.
UF_FEATURE_SIGNsignInputThe 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_listOutput 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_tobj_id_listInputList of objects or one section builder object tag
but not both, to be revolved
char *limit [ 2 ]InputLimits of revolution. The declaration should be
limit[2], where limit[0] = start angle and limit[1] =
end angle. Angles are in degrees.
doublepoint [ 3 ]InputPoint
doubledirection [ 3 ]InputRevolution axis.
UF_FEATURE_SIGNsignInputThe 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_ttarget_bodyInputBoolean target
uf_list_p_t *feature_listOutput to UF_*free*List of feature identifiers created. This
list must be freed by calling UF_MODL_delete_list.

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

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

散会


http://www.kler.cn/a/587128.html

相关文章:

  • ​AI时代到来,对电商来说是效率跃升,还是温水煮青蛙
  • PyTorch PINN实战:用深度学习求解微分方程
  • IPoIB驱动中RSS与TSS技术的深度解析:多队列机制与性能优化
  • 洛谷 P1962:斐波那契数列 ← 矩阵快速幂
  • [人工智能]实现神经网络实例
  • 04.Python基础3
  • go~大型项目的参数注册
  • [local-file-system]基于服务器磁盘的本地文件存储方案
  • CentOS 系统安装 docker 以及常用插件
  • Elasticsearch分页查询、关键词高亮与性能优化全解析
  • 国产芯片替代方案:解析沁恒以太网控制器芯片,内置MAC地址
  • 【MySQL】undo日志类型
  • CSS3学习教程,从入门到精通,CSS3 选择器权重问题语法知识点及案例代码(5)
  • Freertos--把队列加入队列集
  • 使用tiptap快速搭建markdown-富文本编辑器
  • 电路基础【2】:三极管基础:PNP与NPN三极管详解
  • FPGA 中 assign 和 always 区别
  • 2.4滑动窗口专题:将 x 减到 0 的最小操作数
  • 均方误差(MSE)与最小二乘法(LS)的区别
  • 数字孪生像魔镜,映照出无限可能的未来