点击查看详细介绍

请问有人知道如何获取曲线或者边界端点的切线矢量吗?

begtostudy 17年前 18843 4

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


曲线或者边界,一般都有两个端点

其几何属性通过分析菜单是可以查得到的

不知道用API如何获取?

谢谢

0

最新回复 (4)
  • zhangcanwei 17年前
    1

    这里有:

    UF_MODL_ask_curve_props [url=mkMSITStore:E:\UGS\NX 6.0\UGDOC\html_files\nxopen_net_ref\net_ref.chm::/ugopen_doc/uf_modl/uf_modl_curves.html#UF_MODL_ask_curve_props](view source)[/url]


    Defined in: uf_modl_curves.h


    Overview

    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.


    Environment

    Internal and External


    See Also

    [url=mkMSITStore:E:\UGS\NX 6.0\UGDOC\html_files\nxopen_net_ref\net_ref.chm::/ugopen_doc/uf_eval/global.html#UF_EVAL_evaluate]UF_EVAL_evaluate[/url]


    Required License(s)

    gateway


    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

    )

    [url=mkMSITStore:E:\UGS\NX 6.0\UGDOC\html_files\nxopen_net_ref\net_ref.chm::/ugopen_doc/uf_defs/uf_defs.html#tag_t]tag_t[/url]

  • zhangcanwei 17年前
    2

    其中第二个参数取值范围从0到1.
    为0,表示起点信息,为1,表示终点信息

  • begtostudy 17年前
    3

    谢谢!

    我用NXOpen的AnalysisManager类做的(这个操作录制能录制到),但是在裁剪过的曲线一个端点总是出现巨大的数

    所以只好找API试试

    非常感谢!

  • ffhi 17年前
    4

    学习了学习了。

  • 请登录后发表新帖
    免责声明:本站所有资料内容均来自网友个人分享或网上搜集,本站只为方便学习和交流技术而提供平台,不对网站内容负任何法律责任!
    Powered by UGapi.com ©2012-2026 UG二次开发技术网站 版权所有    工信部备案:蜀ICP备15005313号