大家好,今天要講關于如何判斷兩個體是否干涉和獲取系統日志的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() |
今天要介紹的就是這么多,我們下篇文章再見。