点击查看详细介绍

访问圆弧,得到他的起点和终点坐标?

patriotic 17年前 7291 7

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


各位大侠,访问圆弧得到起始角度和终止角度,怎样把角度转化为坐标值?得到他的起点和终点坐标值,ug里有没有类似的函数?谢谢了!!!

0

最新回复 (7)
  • dianzi24 17年前
    1

    UF_MODL_ask_curve_props直接得到坐标

  • zhangcanwei 17年前
    2

    支持楼上,我的问题就是用这个函数解决的,让我少走了很多弯路

  • my_dear2002 17年前
    3

    好像还有个start和end的函数吧

  • cam-yp 17年前
    4

    UF_MODL_ask_curve_props

    Returns the point, tangent, unit principal normal, unit binormal,
    torsion, and radius of curvature on a curve at a given parameter.
    The input curve parameter, parm, is normalized between 0 and 1.

    UF_EVAL_evaluate should be used to evaluate curves and edges instead
    of using this routine. For a full circle, the routines may return
    different results, as the parameterization of the circle may be done in
    two different directions.



    See Also
    UF_EVAL_evaluate






    extern int UF_MODL_ask_curve_props (
    tag_t curve_id,
    double parm,
    double point[ 3 ],
    double tangent[ 3 ],
    double p_norm[ 3 ],
    double b_norm[ 3 ],
    double * torsion,
    double * rad_of_cur );

    tag_t

  • zhangcanwei 17年前
    5

    回cam_yp兄:
    double parm这个参数设为0,就是起点坐标,设为1就是终点坐标

  • cam-yp 17年前
    6

    原帖由

  • zhangcanwei 17年前
    7

    对,这是个笨函数,要“连问”两次。 不过这个函数很有效!有的函数好像会出错

请登录后发表新帖