UF_MODL_ask_body_boundaries
Defined in: uf_modl.h
int UF_MODL_ask_body_boundaries(tag_t body_tag, int * num_boundaries, int * * num_edges, tag_t * * edge_tags )
overview 概述
Returns the number of boundary edges of a sheet body, the number of edges in each of these boundaries, and the tags for the edges in each boundary. These edges bound only a single face found in the input sheet body.
The array num_edges is dimensioned by the number of boundaries found (e.g. includes boundaries of holes). Each element in the array contains the number of edges in the corresponding boundary. The array edge_tags is dimensioned large enough to contain all the tags of all the edges in all the boundaries. The edges belonging to boundary 1 are listed first in the array, followed immediately by the edges for boundary 2, etc.
If body_tag is an occurrence, then the return values are relative to the occurrence, and not the prototype.
返回工作表主体的边界边数、每个边界中的边数以及每个边界中边的标记。这些边界只限于输入表体中的一个单一面。数组 num _ edge 是根据找到的边界数量(例如,包括孔的边界)来确定尺寸的。数组中的每个元素包含相应边界中的边数。数组 edge _ tag 的尺寸足够大,可以包含所有边界中所有边的所有标记。属于边界1的边在数组中首先列出,紧接着是边界2的边,等等。如果 body _ tag 是一个匹配项,那么返回值是相对于匹配项的,而不是原型的。
UFUN例子
获取源码例子请搜索 里海NX二次开发3000例专栏
parameters 参数
| tag_t | body_tag | Input | Tag of sheet body to check for boundaries 用于检查边界的工作表主体标签 |
| int * | num_boundaries | Output | Number of boundaries found 找到的边界数 |
| int * * | num_edges | Output to UF_free | Array of number of edges in each boundary found. This must be freed by calling UF_free. 在每个边界中找到的边数的数组。这必须通过调用 UF _ free 来释放。 |
| tag_t * * | edge_tags | Output to UF_free | Array of edge tags in each boundary. This must be freed by calling UF_free. 每个边界的边缘标记数组。这必须通过调用 UF _ free 来释放。 |