<?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 Re: Coordinates of Selection Window in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458231#M11644</link>
    <description>&lt;P&gt;Did you perhaps miss&amp;nbsp;the paragraph entitled "Pick Point Selection"?&amp;nbsp;In a normal view,&amp;nbsp;your selection window&amp;nbsp;represents an infinitely deep and infinitely tall box parallel to your viewing direction. The vectors define the view direction at each point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The returned points describe one point on each of the 4 view-parallel&amp;nbsp;edges&amp;nbsp;of that imaginary box. To determine whether a point falls inside that box, you would&amp;nbsp;calculate&amp;nbsp;a plane which is perpendicular to&amp;nbsp;the view direction at the line endpoint, and includes the endpoint. You would then project the 4 selection rectangle points onto that plane using the associated view-direction vectors for the projection. In a normal view this projection results in a rectangle that lies in the same plane as the line endpoint, but it's conceivable that some types of view projections&amp;nbsp;could result in the projected curve being a trapezoid.&amp;nbsp;In any case, the problem is now reduced to a 2D problem, and you can then use any&amp;nbsp;"is-point-inside-closed-2D-curve" algorithm to determine whether the line endpoint falls inside the projected curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jan 2015 01:36:44 GMT</pubDate>
    <dc:creator>owenwengerd</dc:creator>
    <dc:date>2015-01-05T01:36:44Z</dc:date>
    <item>
      <title>Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5457717#M11638</link>
      <description>&lt;P&gt;Hopefully a simple (not stupid) question.&amp;nbsp; When selecting objects with acedSSGet, or for that matter, any selection window, how can i get the coordinates of the corners (or vertices if it's a polyline)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2015 19:39:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5457717#M11638</guid>
      <dc:creator>EMD1954</dc:creator>
      <dc:date>2015-01-03T19:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5457754#M11639</link>
      <description>&lt;P&gt;Take a look at acedSSNameX().&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2015 21:14:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5457754#M11639</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2015-01-03T21:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5457767#M11640</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2015 22:06:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5457767#M11640</guid>
      <dc:creator>EMD1954</dc:creator>
      <dc:date>2015-01-03T22:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458121#M11641</link>
      <description>&lt;P&gt;Owen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, I need a litle more help.&amp;nbsp; I have a line that goes from 0,0,0 to 240,0,0.&amp;nbsp; I'm selecting the&amp;nbsp;line with&amp;nbsp;&lt;SPAN style="font-family: Courier New; font-size: small;"&gt;acedSSGet(&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Courier New; font-size: small;"&gt;_T&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: small;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Courier New; font-size: small;"&gt;"X"&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: small;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Courier New; font-size: small;"&gt;NULL&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Courier New; font-size: small;"&gt;NULL&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: small;"&gt;, rb, sel_set)&lt;/SPAN&gt;and manually typing in the coordinates of a crossing window of 12,12,0 and -12,-12,0.&amp;nbsp; I then print out the 4 points returned by&lt;/P&gt;&lt;P&gt;acedSSNameX(&amp;amp;rb2, sel_set, -1) and the stretchPoints of the line.&amp;nbsp; Here's what I get (I'm in the WCS):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4 Points Returned as RT3DPOINT from the resbuf:&lt;/P&gt;&lt;P&gt;-12.09837853 12.09830217 13464.12157445&lt;BR /&gt;12.09837810 12.09830217 13464.12157445&lt;BR /&gt;12.09837810 -12.09830240 13464.12157445&lt;BR /&gt;-12.09837853 -12.09830240 13464.12157445&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stretch Point 0 = 0.0000 0.0000 0.0000&lt;BR /&gt;Stretch Point 1 = 240.0000 0.0000 0.0000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2015 20:11:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458121#M11641</guid>
      <dc:creator>EMD1954</dc:creator>
      <dc:date>2015-01-04T20:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458177#M11642</link>
      <description>&lt;P&gt;What do you need help with?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2015 22:36:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458177#M11642</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2015-01-04T22:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458182#M11643</link>
      <description>&lt;P&gt;If I input the coordinates on the command line as 12, 12, 0 and -12, -12, 0, what do the 4 resulting points represent?&amp;nbsp; From where does the 13464.12157445 for the Z coordinate come from?&amp;nbsp; I've been assuming that these are the 4 corners of the selection (crossing) window.&amp;nbsp; Maybe I'm not understanding "point on vertex "line" (in WCS)"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-12.09837853 12.09830217 13464.12157445&lt;BR /&gt;12.09837810 12.09830217 13464.12157445&lt;BR /&gt;12.09837810 -12.09830240 13464.12157445&lt;BR /&gt;-12.09837853 -12.09830240 13464.12157445&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And how do&amp;nbsp;I use them to see that one endpoint of the line&amp;nbsp;(Stretch Point 0 = 0.0000 0.0000 0.0000)&amp;nbsp;is within the selection window?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp;don't understand&amp;nbsp;the second set of numbers I get (when not in the WCS)&amp;nbsp;"vector describing direction of vertex "line" or direction &amp;amp; distance to other end of line segment (only present if viewpoint is not plan WCS)".&amp;nbsp; What is a vertex line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2015 23:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458182#M11643</guid>
      <dc:creator>EMD1954</dc:creator>
      <dc:date>2015-01-04T23:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458231#M11644</link>
      <description>&lt;P&gt;Did you perhaps miss&amp;nbsp;the paragraph entitled "Pick Point Selection"?&amp;nbsp;In a normal view,&amp;nbsp;your selection window&amp;nbsp;represents an infinitely deep and infinitely tall box parallel to your viewing direction. The vectors define the view direction at each point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The returned points describe one point on each of the 4 view-parallel&amp;nbsp;edges&amp;nbsp;of that imaginary box. To determine whether a point falls inside that box, you would&amp;nbsp;calculate&amp;nbsp;a plane which is perpendicular to&amp;nbsp;the view direction at the line endpoint, and includes the endpoint. You would then project the 4 selection rectangle points onto that plane using the associated view-direction vectors for the projection. In a normal view this projection results in a rectangle that lies in the same plane as the line endpoint, but it's conceivable that some types of view projections&amp;nbsp;could result in the projected curve being a trapezoid.&amp;nbsp;In any case, the problem is now reduced to a 2D problem, and you can then use any&amp;nbsp;"is-point-inside-closed-2D-curve" algorithm to determine whether the line endpoint falls inside the projected curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 01:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458231#M11644</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2015-01-05T01:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinates of Selection Window</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458235#M11645</link>
      <description>&lt;P&gt;Absolutely, and very clearly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 01:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/coordinates-of-selection-window/m-p/5458235#M11645</guid>
      <dc:creator>EMD1954</dc:creator>
      <dc:date>2015-01-05T01:44:11Z</dc:date>
    </item>
  </channel>
</rss>

