TA的每日心情![](source/plugin/dsu_paulsign/img/emot/kx.gif) | 开心 昨天 15:23 |
---|
签到天数: 69 天 [LV.6]常住居民II
管理员
- 积分
- 2704
|
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); |
|