要想用好UF_CURVE_ask_arc_data()这个函数必须清楚“获取的圆弧起始角度值、圆弧中心坐标都是相对于圆弧坐标系的(Arc's csys)”
例子:
extern DllExport void ufsta(char *param, int *returnCode, int rlen)
{
UF_initialize();
UF_CURVE_arc_t arc_coords;
tag_t tagEdge= 44798;
UF_CURVE_ask_arc_data(tagEdge, &arc_coords);
//arc_coords.start_angle
//arc_coords.end_angle
//注意:这个arc_coords.arc_center不是绝对坐标系下坐标,而是arc_coords.matrix_tag下的坐标值
double douMatrixValue[9];
UF_CSYS_ask_matrix_values(arc_coords.matrix_tag, douMatrixValue);
double douPoint[3];
UF_MTX3_vec_multiply_t(arc_coords.arc_center, douMatrixValue,douPoint);
tag_t pnt;