<?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 Betreff: intersectWith api has error, the intersect points are wrong in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/intersectwith-api-has-error-the-intersect-points-are-wrong/m-p/12694416#M1061</link>
    <description>&lt;P&gt;I think you should use, AcDb::kOnBothOperands&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;TABLE cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;AcDb::kOnBothOperands&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;Do not extend either entity. This results in only calculating intersections where the two entity's geometry actually intersect&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 08 Apr 2024 14:42:13 GMT</pubDate>
    <dc:creator>ynapeu</dc:creator>
    <dc:date>2024-04-08T14:42:13Z</dc:date>
    <item>
      <title>intersectWith api has error, the intersect points are wrong</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/intersectwith-api-has-error-the-intersect-points-are-wrong/m-p/12589648#M1060</link>
      <description>&lt;P&gt;a ray intersectWith a polyline,get three intersect points.but one point is wrong .it is not intersct point in fact. i use red line to join the three point.i have marked the three point "1,2,3". the third point is not intersect&amp;nbsp; with polyline in fact.there are only two intersect points in fact. the following are the code.&amp;nbsp;&lt;SPAN&gt;pts_intesect and&amp;nbsp;pts_intesect2 are the same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;AcGePoint3d pttemp = AcGePoint3d(ptc.x + drad*cos(dang),ptc.y+ drad*sin(dang),ptc.z);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AcDbRay* pray = new AcDbRay();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pray-&amp;gt;setBasePoint(pttemp);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pray-&amp;gt;setUnitDir(rayvec);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AcGePoint3dArray pts_intesect;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;vector&amp;lt;AcGePoint3d&amp;gt; vec1;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;err = polyLine-&amp;gt;intersectWith(pray, AcDb::kExtendArg, pts_intesect);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for each (AcGePoint3d var in pts_intesect)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;vec1.push_back(var);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AcGePoint3dArray pts_intesect2;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;vector&amp;lt;AcGePoint3d&amp;gt; vec2;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;err = pray-&amp;gt;intersectWith(polyLine, AcDb::kExtendThis, pts_intesect2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for each (AcGePoint3d var in pts_intesect2)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;vec2.push_back(var);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delete pray;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="475867377_0-1709173941669.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331624i9FA0084F33614D72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="475867377_0-1709173941669.png" alt="475867377_0-1709173941669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="475867377_1-1709174078935.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331628i8860C2E72E20D0EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="475867377_1-1709174078935.png" alt="475867377_1-1709174078935.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 02:43:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/intersectwith-api-has-error-the-intersect-points-are-wrong/m-p/12589648#M1060</guid>
      <dc:creator>475867377</dc:creator>
      <dc:date>2024-02-29T02:43:09Z</dc:date>
    </item>
    <item>
      <title>Betreff: intersectWith api has error, the intersect points are wrong</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/intersectwith-api-has-error-the-intersect-points-are-wrong/m-p/12694416#M1061</link>
      <description>&lt;P&gt;I think you should use, AcDb::kOnBothOperands&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;TABLE cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;AcDb::kOnBothOperands&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;Do not extend either entity. This results in only calculating intersections where the two entity's geometry actually intersect&amp;nbsp;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Apr 2024 14:42:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/intersectwith-api-has-error-the-intersect-points-are-wrong/m-p/12694416#M1061</guid>
      <dc:creator>ynapeu</dc:creator>
      <dc:date>2024-04-08T14:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: intersectWith api has error, the intersect points are wrong</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/intersectwith-api-has-error-the-intersect-points-are-wrong/m-p/12713938#M1062</link>
      <description>&lt;P&gt;I tried to reproduce your observation. But the provided code is not sufficient.&lt;/P&gt;
&lt;P&gt;Please provide values for &lt;FONT face="courier new,courier"&gt;ptc, drad, dang&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;rayvec&lt;/FONT&gt; and either a DWG with a polyline that can be used for&amp;nbsp;&lt;FONT face="courier new,courier"&gt;polyline&lt;/FONT&gt; or code to create it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrammer_0-1713340925710.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1350880i32E757DD57AE0A2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbrammer_0-1713340925710.png" alt="tbrammer_0-1713340925710.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbrammer_1-1713340943512.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1350881i10A081073AA2526D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tbrammer_1-1713340943512.png" alt="tbrammer_1-1713340943512.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 08:08:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/intersectwith-api-has-error-the-intersect-points-are-wrong/m-p/12713938#M1062</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2024-04-17T08:08:22Z</dc:date>
    </item>
  </channel>
</rss>

