<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how can i check to point it's inside or outside of a Polyline? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312359#M39375</link>
    <description>Hi there&lt;BR /&gt;
&lt;BR /&gt;
i need to detect if a point lies inside a closed AcDbPolyline or not&lt;BR /&gt;
but i dont find any similar function in AND and it's relations classes or I&lt;BR /&gt;
don't find it.&lt;BR /&gt;
&lt;BR /&gt;
please message me if you know how to detect if a input point lies inside a&lt;BR /&gt;
closed AcDbPolyline&lt;BR /&gt;
&lt;BR /&gt;
thanks for read&lt;BR /&gt;
&lt;BR /&gt;
Honesty</description>
    <pubDate>Wed, 11 Sep 2002 17:10:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-09-11T17:10:53Z</dc:date>
    <item>
      <title>how can i check to point it's inside or outside of a Polyline?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312359#M39375</link>
      <description>Hi there&lt;BR /&gt;
&lt;BR /&gt;
i need to detect if a point lies inside a closed AcDbPolyline or not&lt;BR /&gt;
but i dont find any similar function in AND and it's relations classes or I&lt;BR /&gt;
don't find it.&lt;BR /&gt;
&lt;BR /&gt;
please message me if you know how to detect if a input point lies inside a&lt;BR /&gt;
closed AcDbPolyline&lt;BR /&gt;
&lt;BR /&gt;
thanks for read&lt;BR /&gt;
&lt;BR /&gt;
Honesty</description>
      <pubDate>Wed, 11 Sep 2002 17:10:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312359#M39375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-11T17:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check to point it's inside or outside of a Polyline?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312360#M39376</link>
      <description>Hi Honesty,&lt;BR /&gt;
&lt;BR /&gt;
You can refer to DevNotes 2595  " Testing whether A Point lies inside a&lt;BR /&gt;
curve"on the ADN website or the PointA Customization Channel Knowledge&lt;BR /&gt;
Database.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Varadarajan&lt;BR /&gt;
&lt;BR /&gt;
"honesty man" &lt;JS.PARK&gt; wrote in message&lt;BR /&gt;
news:C5340EF9709867B5C8489519E5D74E8C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi there&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; i need to detect if a point lies inside a closed AcDbPolyline or not&lt;BR /&gt;
&amp;gt; but i dont find any similar function in AND and it's relations classes or&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; don't find it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; please message me if you know how to detect if a input point lies inside a&lt;BR /&gt;
&amp;gt; closed AcDbPolyline&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; thanks for read&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Honesty&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JS.PARK&gt;</description>
      <pubDate>Thu, 12 Sep 2002 20:42:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312360#M39376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-12T20:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check to point it's inside or outside of a Polyline?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312361#M39377</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I checked ADN network I registered etc... but I could not find the DevNotes 2595 or any other development notes. &lt;BR /&gt;
&lt;BR /&gt;
Can you give the full link or any other link that I can use?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 29 Aug 2006 13:03:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312361#M39377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-29T13:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: how can i check to point it's inside or outside of a Polyline?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312362#M39378</link>
      <description>You need to use the AcDbMPolygon Class;&lt;BR /&gt;
&lt;BR /&gt;
Also, you can use this url link to view the whole topic about how to&lt;BR /&gt;
implement AcDbMPolygon for your case, including the help from the master&lt;BR /&gt;
Alexander Rivilis.&lt;BR /&gt;
&lt;BR /&gt;
http://www.theswamp.org/index.php?topic=9145.0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I went into that route some time ago, here is one function to find if one&lt;BR /&gt;
poly is inside another poly:&lt;BR /&gt;
&lt;BR /&gt;
static void LESQsomefunctions_PINP(void)&lt;BR /&gt;
{&lt;BR /&gt;
ads_name en;&lt;BR /&gt;
AcGePoint3d p;&lt;BR /&gt;
Acad::ErrorStatus es;&lt;BR /&gt;
AcDbObjectId objId1, objId2;&lt;BR /&gt;
AcDbCurve *pEnt = NULL;&lt;BR /&gt;
if (acedEntSel("\nSelect first curve: ",en,asDblArray(p)) != RTNORM) return;&lt;BR /&gt;
&lt;BR /&gt;
if (acdbGetObjectId(objId1,en) != Acad::eOk) return;&lt;BR /&gt;
AcDbObjectPointer&lt;ACDBCURVE&gt; pCurv1(objId1,AcDb::kForRead);&lt;BR /&gt;
&lt;BR /&gt;
if (acedEntSel("\nSelect second curve: ",en,asDblArray(p)) != RTNORM)&lt;BR /&gt;
return;&lt;BR /&gt;
&lt;BR /&gt;
if (acdbGetObjectId(objId2,en) != Acad::eOk) return;&lt;BR /&gt;
AcDbObjectPointer&lt;ACDBCURVE&gt; pCurv2(objId2,AcDb::kForRead);&lt;BR /&gt;
&lt;BR /&gt;
if ((pCurv1.openStatus() == Acad::eOk) &amp;amp;&amp;amp;&lt;BR /&gt;
(pCurv2.openStatus() == Acad::eOk)) {&lt;BR /&gt;
&lt;BR /&gt;
AcDbPolyline *pPoly1 = AcDbPolyline::cast(pCurv1.object());&lt;BR /&gt;
AcDbPolyline *pPoly2 = AcDbPolyline::cast(pCurv2.object());&lt;BR /&gt;
&lt;BR /&gt;
AcGePoint3dArray points;&lt;BR /&gt;
es = pPoly1-&amp;gt;intersectWith(pPoly2, AcDb::kOnBothOperands, points);&lt;BR /&gt;
int len;&lt;BR /&gt;
if ((es != Acad::eOk) || ((len = points.length()) == 0)) {&lt;BR /&gt;
&lt;BR /&gt;
AcGePoint3d point;&lt;BR /&gt;
double params;&lt;BR /&gt;
unsigned int num = pPoly2-&amp;gt;numVerts();&lt;BR /&gt;
&lt;BR /&gt;
AcDbMPolygon mpol;&lt;BR /&gt;
AcGeIntArray ar;&lt;BR /&gt;
&lt;BR /&gt;
mpol.appendLoopFromBoundary(pPoly1,false);&lt;BR /&gt;
&lt;BR /&gt;
long cont;&lt;BR /&gt;
for (cont=0; cont &amp;lt; (num - 1); cont++) {&lt;BR /&gt;
pPoly2-&amp;gt;getPointAtParam((double)cont, point);&lt;BR /&gt;
if (mpol.isPointInsideMPolygon(point, ar) &amp;gt; 0) {&lt;BR /&gt;
acutPrintf("\nInside!");&lt;BR /&gt;
} else {&lt;BR /&gt;
acutPrintf("\nNOT Inside!");&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
} else {&lt;BR /&gt;
acutPrintf("\nNOT Inside!");&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
}//end of command PINP&lt;/ACDBCURVE&gt;&lt;/ACDBCURVE&gt;</description>
      <pubDate>Tue, 29 Aug 2006 13:20:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-can-i-check-to-point-it-s-inside-or-outside-of-a-polyline/m-p/312362#M39378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-29T13:20:56Z</dc:date>
    </item>
  </channel>
</rss>

