NX二次开发UF_MODL_ask_input_curves_from_section 函数介绍

78 阅读1分钟

UF_MODL_ask_input_curves_from_section

Defined in: uf_sc.h 
int UF_MODL_ask_input_curves_from_section(tag_t section, int * n_loops, int * * n_crv_each_loops, UF_SC_section_output_data_p_t * * input_curves )

overview 概述

Returns the underlying curve and corresponding start and end connector for each of the output curves of a section, arranged in the same way as they are used in the loops of the section.


返回一个部分的每个输出曲线的底层曲线以及相应的开始和结束连接线,它们的排列方式与在该部分的循环中使用的方式相同。

UFUN例子

获取源码例子请搜索 里海NX二次开发3000例专栏

parameters 参数

tag_tsectionInputThe input section
输入部分
int *n_loopsOutputThe number of loops in the section. This argument cannot be NULL
节中循环的数量。此参数不能为 NULL
int * *n_crv_each_loopsOutput to UF_freeAn integer array will be allocated, the size of which is the number of loops in the section. Each element in the array is the number of curves in each loop. This argument cannot be NULL. The allocated memory needs to be freed.
将分配一个整数数组,其大小是该节中循环的数量。数组中的每个元素是每个循环中的曲线数。此参数不能为 NULL。需要释放分配的内存。
UF_SC_section_output_data_p_t * *input_curvesOutput to UF_freeAn array of an array of UF_SC_section_output_data_t will be allocated, where the ith row represents the ith loop, and the jth column in the ith row reprsents the input data for the jth curve in the ith loop. This argument can be NULL. The start and end connectors and the corresponding points in (input_curves)[i][j] will be wrt the corresponding loop direction. The allocated memory needs to be freed.
将分配一个 UF _ SC _ section _ output _ data _ t 数组数组,其中第 i 行表示第 i 个循环,第 i 行中的 jth 列表示第 i 个循环中的 jth 曲线的输入数据。此参数可以为 NULL。开始和结束连接器以及(input _ Curve)[ i ][ j ]中的对应点将被写入相应的循环方向。需要释放分配的内存。