C# NX二次开发:判断两个体是否干涉和获取系统日志的UFUN函数

大家好,今天要讲关于如何判断两个体是否干涉和获取系统日志的UFUN函数。

(1)UF_MODL_check_interference:这个函数的定义为根据单个目标体检查每个指定的工具体是否有干扰。

Defined in: uf_modl.h

Overview

Checks each specified tool body against the single target body for interference.

An interference status is returned for each tool body.

Objects may be created as part of the interference checking. These objects are

tagged for deletion, but to make sure the memory is freed and avoid memory overflow,

UF_MODL_update should be called following the call to UF_MODL_check_interference.

Environment

Internal and External

See Also

Refer to example

History

Originally released in V16.0

Required License(s)

solid_modeling

int UF_MODL_check_interference

(

tag_t target,

int num_tools,

tag_t * tools,

int * results

)

|-------------------------------------------|-----------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| tag_t | target | Input | Target body against which interference is checked |
| int | num_tools | Input | Number of tool bodies specified in tools array |
| tag_t * | tools | Input | Tool bodies whose interference with target is inquired. Dimensioned to num_tools |
| int * | results | Output | Interference status for each tool body. The caller is responsible for allocating it with an array size of num_tools. = 1 -> there is interference = 2 -> no interference = 3 -> touching, that is coincident faces |

第一个参数为目标体的Tag值

第二个参数为在工具数组中指定的工具体数目

第三个参数为与目标体干涉得到工具体

第四个参数为返回干涉状态

= 1 ->有干扰

= 2 ->无干扰

= 3 ->触碰,即重合面

(2)UF_ask_syslog_filename :这个函数的定义为获取NX系统日志文件。

Defined in: uf.h

Overview

Get name of the current syslog

Environment

Internal and External

History

Released in NX2.0.5

Required License(s)

gateway

int UF_ask_syslog_filename

(

char * * filename

)

|------------|----------|-----------------------|-----------------------------------------------------------------------------|
| char * * | filename | Output to UF_*free* | pointer to dynamically allocated path filename must be freed with UF_free() |

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

相关推荐
ByteCraze几秒前
手写高性能虚拟列表(详解!!!)
javascript·学习
M ? A7 分钟前
Vue转React最佳工具对比:Vuera、Veaury与VuReact
前端·javascript·vue.js·经验分享·react.js
We་ct12 分钟前
JS手撕:函数进阶 & 设计模式解析
开发语言·前端·javascript·设计模式·面试·前端框架
悟空瞎说27 分钟前
前端老鸟实战:纯 CSS 实现小红书「真・瀑布流」,零 JS、自动错落、生产可用
前端
yuki_uix28 分钟前
当 reduce 遇到二维数据:从"聚合直觉"到"复合 Map"的思维跃迁
前端·javascript·面试
我叫黑大帅31 分钟前
Vue3中的computed 与 watch 的区别
前端·javascript·面试
暗不需求33 分钟前
# 一文搞懂 JavaScript 内存机制:从栈和堆,到闭包为什么“活得更久”
前端·javascript
CharlesY33 分钟前
JavaScript HTML5 Cache Manifest:离线应用缓存机制考古
前端·javascript
yuki_uix33 分钟前
前端解题的 6 个思维模型:比记答案更有用的东西
前端·面试
Bigger1 小时前
第三章:我是如何剖析 Claude Code 工具系统与命令执行机制的
前端·claude·源码阅读