UF_MODL_model_compare_3
Defined in: uf_mdlcmp.h
int UF_MODL_model_compare_3(tag_t part1, tag_t body_eids_part1, double transform_1 [ 16 ] , tag_t part2, tag_t body_eids_part2, double transform_2 [ 16 ] , UF_MODL_compare_options_p_t compare_options, UF_MODL_compare_part_map_data_3_p_t * mapping_data )
overview 概述
Function Name: UF_MODL_model_compare_3
Function Description: Used as a replacement for UF_MODL_model_compare_2 in the common API. Open C API programs may continue to use the original UF_MODL_model_compare_2 function.
Compare parts. Compare bodies from the same part file or from different part files. This new function takes in an compare options structure as input. An additional option, continue_if_examine_geom_fails can be set in addition to the existing options.
Input: part1 - tag of part1 body_eid_part1 - Body eid from part 1, if NULL, all bodies from part 1 Bodies from the part must pass examine geometry check. transform_1 - Transform for body_eid_part_1. Transformation needed to convert body 1 into the same co-ordinate system as body 2. Initialize with UF_MTX4_identity if bodies are defined in the same coordinate system. NOTE Applicable only if part 1 and part 2 are not related and body_eid_part1 and body_eid_part2 are not NULL. If they are NULL, there should be only one body in part1 and part2. part2 - tag of part2 body_eid_part2 - Body eid from part 2, if NULL, all bodies from part 2 Bodies from the part must pass examine geometry check. transform_2 - Transform for body_eid_part_2. Transformation needed to convert body 2 into the same co-ordinate system as body 1. Initialize with UF_MTX4_identity if bodies are defined in the same coordinate system. NOTE Applicable only if part 1 and part 2 are not related and body_eid_part1 and body_eid_part2 are not NULL. If they are NULL, there should be only one body in part1 and part2. compare_options - Comparison options. Use macro UF_MODL_INIT_COMPARE_OPTIONS to initialize default options
Output: mapping_data - Mapping data, result of the comparison Note: Caller is responsible for freeing the mapping data, by calling UF_MODL_free_compare_data_3
函数名称: UF _ MODL _ model _ ゑ _ 3函数描述: 用于替代通用 API 中的 UF _ MODL _ model _ ゑ _ 2。开放的 C API 程序可以继续使用原来的 UF _ MODL _ model _ ゑ _ 2函数。比较一下。比较来自相同零件文件或不同零件文件的正文。这个新函数接受一个比较选项结构作为输入。除了现有选项之外,还可以设置一个附加选项 keep _ if _ check _ geom _ fails。输入: part1-part1 Body _ eid _ part1的标记-第1部分的 Body eid,如果为 NULL,则第1部分的所有主体必须通过检查几何检查。Change _ 1-body _ eid _ part _ 1的转换。将物体1转换为与物体2相同的坐标系需要进行转换。如果主体在同一个坐标系中定义,则使用 UF _ MTX4 _ Identity 初始化。注意: 只有在第1部分和第2部分不相关,body _ eid _ part1和 body _ eid _ part2不为 NULL 的情况下才适用。如果它们是 NULL,那么在第1部分和第2部分中应该只有一个主体。Part2的 part2-tag Body _ eid _ part2-第2部分的 Body eid,如果为 NULL,则第2部分的所有主体必须通过检查几何检查。Change _ 2-body _ eid _ part _ 2的变换。将物体2转换为与物体1相同的坐标系需要进行转换。如果主体在同一个坐标系中定义,则使用 UF _ MTX4 _ Identity 初始化。注意: 只有在第1部分和第2部分不相关,body _ eid _ part1和 body _ eid _ part2不为 NULL 的情况下才适用。如果它们是 NULL,那么在第1部分和第2部分中应该只有一个主体。Bill _ options-比较选项。使用宏 UF _ MODL _ INIT _ COMPARE _ OPTION 初始化默认选项输出: map _ data-Mapping data,比较的结果注意: 调用方通过调用 UF _ MODL _ free _ compare _ data _ 3负责释放映射数据
UFUN例子
获取源码例子请搜索 里海NX二次开发3000例专栏
parameters 参数
| tag_t | part1 | Input | |
| tag_t | body_eids_part1 | Input | |
| double | transform_1 [ 16 ] | Input | |
| tag_t | part2 | Input | |
| tag_t | body_eids_part2 | Input | |
| double | transform_2 [ 16 ] | Input | |
| UF_MODL_compare_options_p_t | compare_options | Input | |
| UF_MODL_compare_part_map_data_3_p_t * | mapping_data | Output to UF_free | Call UF_MODL_free_compare_data_3 to free mapping data. 调用 UF _ MODL _ free _ ratio _ data _ 3来释放映射数据。 |