天气与日历 切换到窄版

 找回密码
 立即注册
中国膜结构网
十大进口膜材评选 十大国产膜材评选 十大膜结构设计评选 十大膜结构公司评选
查看: 5|回复: 0

文字的交点

[复制链接]
  • TA的每日心情
    开心
    昨天 15:23
  • 签到天数: 69 天

    [LV.6]常住居民II

    410

    主题

    167

    回帖

    2704

    积分

    管理员

    积分
    2704
    发表于 2024-6-22 09:46:18 | 显示全部楼层 |阅读模式
    Knowledge Network Support & Learning AutoCAD AutoCAD Community AutoCAD Customization Forum ObjectARX forum
    AUTOCAD CUSTOMIZATION
    Community
    FORUMS
    ObjectARX

    This board
    Search
    Translate

    ENGLISH
    Two AcDbMtext intersection
    6 REPLIES Back to AutoCAD Customization Category

    Back to Topic Listing Previous Next
    MESSAGE 1 OF 7
    tejaskatakdhond
    Participant tejaskatakdhond 648 Views, 6 Replies
    ‎10-23-2018 12:39 AM
    Two AcDbMtext intersection
    How to compute intersection of 2 AcDbMtext?

    Q] AcDbMtext* mtextA;

         AcDbMtext* mtextB;

         ?? mtextA->intersects(mTextB);



    Tags (0)
    Add tags
    Report
    6 REPLIES
    Sort:
    MESSAGE 2 OF 7
    Alexander.Rivilis
    Mentor Alexander.Rivilis in reply to: tejaskatakdhond
    ‎10-23-2018 03:25 AM
    @tejaskatakdhond wrote:
    How to compute intersection of 2 AcDbMtext?

    Q] AcDbMtext* mtextA;

         AcDbMtext* mtextB;

         ?? mtextA->intersects(mTextB);



    You can check intersection of bounding boxes of both AcDbMtext.




    Alexander Rivilis / Александр Ривилис
    Programmer & Teacher & Helper / Программист - Учитель - Помощник
    Facebook | Twitter | LinkedIn


    Autodesk Authorized Developer        Техническая поддержка программистов Autodesk в СНГ       
    Tags (0)
    Add tags
    Report
    MESSAGE 3 OF 7
    tejaskatakdhond
    Participant tejaskatakdhond in reply to: Alexander.Rivilis
    ‎10-29-2018 07:06 AM
    i tried the following two api's

    1] intersectWith()

    2] boundingBoxIntersectWith

    Both the above api fails to provide the intersection points.



    I tries the same with AcDbText; it fails for this case as well;

    Here is the sample code:

    auto text1 = new AcDbText();
    text1->setPosition(AcGePoint3d(100, 100, 0));
    auto str = std::wstring (L"TEST");
    text1->setTextString(str.c_str());
    text1->setHeight(3.0);
    text1->adjustAlignment();

    auto text2 = new AcDbText();
    text2->setPosition(AcGePoint3d(100, 100, 0));
    str = L"INTERSECT";
    text2->setTextString(str.c_str());
    text2->setHeight(3.0);
    text2->adjustAlignment();

    auto e = text2->intersectWith(text1, AcDb::Intersect::kOnBothOperands, tempArray);
    e = text2->boundingBoxIntersectWith(text1, AcDb::kOnBothOperands, tempArray, 0, 0);

     

     

     

     

    文字的交点
    中国膜结构网打造全中国最好的膜结构综合平台 ,统一协调膜结构设计,膜结构施工,膜材采购,膜材定制,膜结构预算全方位服务。 中国空间膜结构协会合作单位。
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|Archiver|手机版|中国膜结构网|中国膜结构协会|进口膜材|国产膜材|ETFE|PVDF|PTFE|设计|施工|安装|车棚|看台|污水池|

    GMT+8, 2024-7-1 05:55 , Processed in 0.056951 second(s), 22 queries .

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表