UF_MODL_create_thru_curves
Defined in: uf_modl_freeform.h
int UF_MODL_create_thru_curves(UF_STRING_p_t s_section, UF_STRING_p_t s_spine, int * patch, int * alignment, double value [ 6 ] , int * vdegree, int * vstatus, int * body_type, UF_FEATURE_SIGN boolean, double tol [ 3 ] , tag_t c_face_id [ 2 ] , int c_flag [ 2 ] , tag_t * body_obj_id )
overview 概述
Creates a feature through a collection of curves in one direction. The following restrictions apply:
- The first segment curve of each primary/cross/spine is a starting curve.
- If single patch, then vdegree = 0, vclose = 0 (open.) The output of this function is the object identifier associated to the feature.
- If alignment is set to Spline Points, the input sections must all be single B-curves with the same number of defining points.
通过一个方向的曲线集合创建一个特性。以下限制适用: 1。每个主要/交叉/脊柱的第一段曲线是起始曲线。2.如果是单个补丁,那么 vdec = 0,vclose = 0(open.)这个函数的输出是与特性关联的对象标识符。3.如果对齐设置为样条点,则输入部分必须是具有相同数量定义点的单条 B 曲线。
UFUN例子
获取源码例子请搜索 里海NX二次开发3000例专栏
parameters 参数
| UF_STRING_p_t | s_section | Input | Pointer to the section list structure. int num Total number of section string (min=2, max=150) int string[ ] Total number of segment curves/ sketch identifier of each section string (min=1, max =402) int dir[ ] Direction of each section string 1 = Start to end -1 = End to start tag_t id[ ] Identifier of section curve or the section builder object tags, but not both 指向节列表结构的指针。每个节的方向字符串1 = 开始到结束 -1 = 结束到开始标记 _ t id []分段曲线或分段构建器对象标记的标识符,但不能两者兼有 |
| UF_STRING_p_t | s_spine | Input | Pointer to the spine list structure. (for alignment = 5) int num Total number of spine string (min=0, max=1) int string[ ] Total number of segment curves/ sketch identifier of each spine string (min=1, max=402) int dir[ ] Direction of each spine string 1 = Start to end -1 = End to start tag_t id[ ] Identifier of spine curve or the section builder object tags, but not both 指向脊柱列表结构的指针。(对齐 = 5) int num 脊柱字符串的总数(min = 0,max = 1) int string []每个脊柱字符串的段曲线/草图标识符的总数(min = 1,max = 402) int dir []每个脊柱字符串的方向1 = 开始到结束 -1 = 结束到开始 tag _ t id []脊柱曲线或剖面构建器对象标记的标识符,但不能两者兼有 |
| int * | patch | Input | Patch type 1 = Single (Bezier) 2 = Multiple (B-spline) 补丁类型1 = 单(Bezier)2 = 多(B 样条) |
| int * | alignment | Input | Alignment method 1 = Parameter 2 = Arc length 3 = Distance 4 = Angles 5= Spine curves 6 = Spline Points 对齐方法1 = 参数2 = 弧长3 = 距离4 = 角度5 = 脊线6 = 样条点 |
| double | value [ 6 ] | Input | Data for alignment method: [0-2] = 3D vector defining direction line (for alignment = 3) [0-5] = Coordinates of line defining the axis of revolution for planes (for alignment = 4) 对准方法的数据: [0-2] = 定义方向线的三维矢量(对准 = 3)[0-5] = 定义平面旋转轴的线坐标(对准 = 4) |
| int * | vdegree | Input | Degree of surface in V direction. For patch=2, 0 < vdegree <= (s_section.num-1) 表面 V 向度。对于补丁 = 2,0 < v 度 < = (s _ section. num-1) |
| int * | vstatus | Input | Periodic status of surface in V direction: 0 = Open 1 = Closed (at least s_section->num > 2) 曲面在 V 方向的周期状态: 0 = 开1 = 闭(至少 s _ 剖面-> num > 2) |
| int * | body_type | Input | Type of body= 0 = Sheet (Default) 1 = Solid 主体类型 = 0 = 板(默认值)1 = 实心 |
| UF_FEATURE_SIGN | boolean | Input | The sign of the operation to be performed. UF_NULLSIGN = create new target solid UF_POSITIVE = add to target solid UF_NEGATIVE = subtract from target solid UF_UNSIGNED = intersect with target solid 要执行的操作的标志。UF _ NULLSIGN = 创建新的目标固体 UF _ POSITIVE = 添加到目标固体 UF _ NEGATIVE = 减去目标固体 UF _ UNSIGNED = 与目标固体相交 |
| double | tol [ 3 ] | Input | Tolerances: [0] = Distance [1] = Angle (in radians) [2] = Intersection 公差: [0] = 距离[1] = 角度(弧度)[2] = 交点 |
| tag_t | c_face_id [ 2 ] | Input | Object identifiers of neighbor surfaces or collectors of faces from which constraints are obtained [0] = first section string [1] = last section string 获得约束的相邻面的对象标识符或面的收集器[0] = 第一节字符串[1] = 最后一节字符串 |
| int | c_flag [ 2 ] | Input | Flags indicating constraint types: 0 = no constraint 1 = tangency constraint 2 = curvature constraint with [0] = first primary string [1] = last primary string 指示约束类型的标志: 0 = 无约束1 = 相切约束2 = 曲率约束和[0] = 第一个主字符串[1] = 最后一个主字符串 |
| tag_t * | body_obj_id | Output | Body object identifier 身体对象标识符 |