NX二次开发UF_CURVE_ask_curve_struct_data 函数介绍

141 阅读2分钟

UF_CURVE_ask_curve_struct_data

Defined in: uf_curve.h 
int UF_CURVE_ask_curve_struct_data(UF_CURVE_struct_p_t curve_struct, int * type, double * * curve_data )

overview 概述

Allows you to get the curve type and data for a specified curve structure.

NOTE: This routine is to be permanently withdrawn in the near future. Use the routines in the UF_EVAL module instead. Allows you to get the curve type and data for a specified curve structure. You may obtain the curve structure id using UF_CURVE_ask_curve_struct.

Depending on the object type, curve_data may have the following data: POINT curve_data[0 - 2]

LINE curve_data[0] = t0 curve_data[1] = tscale curve_data[2] = periodicity curve_data[3 - 5] = first point curve_data[6 - 8] = second point

ARC curve_data[0] = t0 curve_data[1] = tscale curve_data[2] = periodicity curve_data[3] = start angle curve_data[4] = end angle (radians) curve_data[5] = radius curve_data[6 - 8] = center curve_data[9 - 11] = X axis of the construction plane curve_data[12 - 14] = Y axis of the construction plane

CONIC curve_data[0] = t0 curve_data[1] = tscale curve_data[2] = periodicity curve_data[3] = T1 curve_data[4] = T2 curve_data[5] = K1 curve_data[6] = K2 curve_data[7] = conic type curve_data[8 - 10] = center curve_data[11 - 13] = axis1 curve_data[14 - 16] = axis2

B-CURVE curve_data[0] = t0 curve_data[1] = tscale curve_data[2] = periodicity curve_data[3] = number of poles curve_data[4] = order curve_data[] = knot sequence ( curve_data[3] + curve_data[4] ) curve_data[] = array of homogeneous poles (wx, wy, wz, w), for each pole.


允许您获取指定曲线结构的曲线类型和数据。注意: 这个例行程序将在不久的将来被永久撤销。改用 UF _ EVAL 模块中的例程。允许您获取指定曲线结构的曲线类型和数据。您可以使用 UF _ CURVE _ ask _ Curve _ struct 获得曲线结构 id。根据对象类型,曲线 _ data 可能具有以下数据: POINT 曲线 _ data [0-2] LINE 曲线 _ data [0] = t0曲线 _ data [1] = tscale 曲线 _ data [2] = 周期性Curve _ data [3-5] = 第一点曲线 _ data [6-8] = 第二点 ARC 曲线 _ data [0] = t0曲线 _ data [1] = tscale 曲线 _ data [2] = 周期性曲线 _ data [3] = 起始角曲线 _ data [4] = 端角(弧度)曲线数据[5] = 半径曲线数据[6-8] = 中心曲线数据[9-11] = 施工平面的 X 轴曲线数据[12-14] = Y 轴构造平面 CONIC 曲线 _ data [0] = t0曲线 _ data [1] = tscale 曲线 _ data [2] = 周期性曲线 _ data [3] = T1曲线 _ data [4] = T2Curve _ data [5] = K1型曲线数据[6] = K2型曲线数据[7] = 圆锥型曲线数据[8-10] = 中心Curl _ data [11-13] = axis1曲线 _ data [14-16] = axis2 B-CURVE 曲线 _ data [0] = t0曲线 _ data [1] = tscale 曲线 _ data [2]= 周期性曲线 _ data [3] = 极点数曲线 _ data [4] = 顺序曲线 _ data [] = 节点序列(曲线 _ data [3] + 曲线 _ data [4])曲线 _ data [] = 每个极点的均匀极点阵列(wx,wy,wz,w)。

UFUN例子

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

parameters 参数

UF_CURVE_struct_p_tcurve_structInputCurve structure pointer.
曲线结构指针。
int *typeOutputObject type
对象类型
double * *curve_dataOutput to UF_freeArray of object data. This array is allocated by this routine. The caller must free it by calling UF_free.
对象数据的数组。这个数组是由这个例程分配的。调用者必须通过调用 UF _ free 来释放它。