NX二次开发UF_MODL_ask_bsurf 函数介绍

141 阅读1分钟

UF_MODL_ask_bsurf

Defined in: uf_modl_bsurf.h 
int UF_MODL_ask_bsurf(tag_t face, UF_MODL_bsurface_p_t bsurf )

overview 概述

Returns the B-surface data associated with the input face or the body (with a single face) tag. The underlying data in this structure should be freed by calling UF_MODL_free_bsurf_data.

Note: The valid face types are UF_MODL_PARAMETRIC_FACE and UF_MODL_OFFSET_FACE. All the other types do not have any bsurface data.


返回与输入面或主体(只有一个面)标记关联的 B 表面数据。此结构中的基础数据应通过调用 UF _ MODL _ free _ bsurdata 来释放。注意: 有效的面类型是 UF _ MODL _ PARAMETRIC _ FACE 和 UF _ MODL _ offSET _ FACE。所有其他类型都没有任何 bface 数据。

UFUN例子

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

parameters 参数

tag_tfaceInputFace or body (with a single face) tag being inquired. Only face types UF_MODL_PARAMETRIC_FACE and UF_MODL_OFFSET_FACE will have any bsurface data.
被询问的脸或身体(带有一个脸)标签。只有面类型 UF _ MODL _ PARAMETRIC _ FACE 和 UF _ MODL _ offSET _ FACE 将有任何 bface 数据。
UF_MODL_bsurface_p_tbsurfOutputReturned B-surface information. The user should allocate a UF_MODL_bsurface_t structure and pass in a pointer to this structure. This routine will fill this structure with dynamically allocated data. This must be freed by calling UF_MODL_free_bsurf_data.
返回的 B 曲面信息。用户应该分配一个 UF _ MODL _ bSurface _ t 结构,并传递一个指向这个结构的指针。这个例程将用动态分配的数据填充这个结构。这必须通过调用 UF _ MODL _ free _ bsurdata 来释放。