iCAx开思工具箱

标题: 根据输入的曲线和参数,输出所得到的点,创建临时点 [打印本页]

作者: chinayv    时间: 2015-9-18 09:59
标题: 根据输入的曲线和参数,输出所得到的点,创建临时点
static void ask_curve_point(tag_t curve, double point[3], double p_parm)  F! }/ V% }6 D$ K
{
    double limits[2];# e2 j3 f1 U; f) c
    UF_OBJ_disp_props_t attrib = { 1, UF_OBJ_WHITE, UF_OBJ_NOT_BLANKED, UF_OBJ_WIDTH_NORMAL,
    UF_OBJ_FONT_SOLID, FALSE};: o) W6 a9 G* O1 s
    UF_EVAL_p_t eval;9 P) [6 p7 Q! a. `- s) L( D
! j6 ?! e/ F. I7 U2 B
    UF_CALL(UF_EVAL_initialize(curve, &eval));3 H7 c8 a# {1 v3 E/ Z+ X: F" y
    UF_CALL(UF_EVAL_ask_limits(eval, limits));
6 a& N) \; X/ V: _" `
    UF_CALL(UF_EVAL_evaluate(eval, 0, ( (limits[1] - limits[0]) * p_parm),point, NULL));
2 N& d. _/ Z" f+ _, j
    UF_CALL(UF_DISP_display_temporary_point(NULL_TAG,, h; ]) Z2 f' T+ r
    UF_DISP_USE_ACTIVE_PLUS, point, &attrib, UF_DISP_POINT));7 w) S+ o' o* o( Y5 r" P! a
' j7 \: [4 n7 q4 g' R2 A
    UF_CALL(UF_EVAL_free(eval));: [0 Y9 J( l9 S" Q  f9 b# ^
}






欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3