NX二次开发源码分享:获取样条曲线上的参数点
根据输入的曲线,和参数,输出所得到的点,创建临时点
static void ask_curve_point(tag_t curve, double point, double p_parm)
{
double
limits;
UF_OBJ_disp_props_t
attrib = { 1, UF_OBJ_WHITE, UF_OBJ_NOT_BLANKED, UF_OBJ_WIDTH_NORMAL,
UF_OBJ_FONT_SOLID, FALSE};
UF_EVAL_p_t
eval;
UF_CALL(UF_EVAL_initialize(curve, &eval));
UF_CALL(UF_EVAL_ask_limits(eval, limits));
UF_CALL(UF_EVAL_evaluate(eval, 0, ( (limits - limits) * p_parm),
point, NULL));
UF_CALL(UF_DISP_display_temporary_point(NULL_TAG,
UF_DISP_USE_ACTIVE_PLUS, point, &attrib, UF_DISP_POINT));
UF_CALL(UF_EVAL_free(eval));
}
页:
[1]