<?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: I have a polygon shaped something like a sausage and need to find two points that are approximately at the ends on the polygon. Convex or concave, it can be on any angle when created. Does anyone know of a routine/algorithm for this? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172081#M1042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could show some sample shapes it might help, since S and C shaped figures and other self-enclosing ones will obviously require a medial axis (also look up 'skeleton') approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 03:21:28 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-06-15T03:21:28Z</dc:date>
    <item>
      <title>I have a polygon shaped something like a sausage and need to find two points that are approximately at the ends on the polygon. Convex or concave, it can be on any angle when created. Does anyone know of a routine/algorithm for this?</title>
      <link>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172078#M1039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried thinning but the results are not accurate. I will code the algorithm in Vb.Net.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 20:55:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172078#M1039</guid>
      <dc:creator>JohnAdlersparre</dc:creator>
      <dc:date>2016-06-14T20:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: I have a polygon shaped something like a sausage and need to find two points that are approximately at the ends on the polygon. Convex or concave, it can be on any angle when created. Does anyone know of a routine/algorithm for this?</title>
      <link>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172079#M1040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ideally what you want is the medial axis, but there are no builtin tools to do this (yet).&amp;nbsp; However, you can approximate the location using a &lt;A href="http://www.arcgis.com/home/item.html?id=564e2949763943e3b9fb4240bab0ca2f"&gt;Minimum Area Bounding Rectangle (MABR)&lt;/A&gt; which will give you the axis diameters and you can derive the corner points and average them in the long axis direction... a bit of work, but your other option is to find an existing implementation of the medial axis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;addendum, a quick approximation would&amp;nbsp; be to intersect the MABR with the polygon returning points...there will probably be at most 4 intersecting points and you can select those that best represent the axis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172079#M1040</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-14T21:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: I have a polygon shaped something like a sausage and need to find two points that are approximately at the ends on the polygon. Convex or concave, it can be on any angle when created. Does anyone know of a routine/algorithm for this?</title>
      <link>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172080#M1041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your reply and suggestions. I will attempt a routine&lt;/P&gt;&lt;P&gt;to simulate the medial axis using the bounding rectangle which sounds like&lt;/P&gt;&lt;P&gt;the best approach. So far I can find points close to the "ends" of the&lt;/P&gt;&lt;P&gt;polygon but not the best points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 02:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172080#M1041</guid>
      <dc:creator>JohnAdlersparre</dc:creator>
      <dc:date>2016-06-15T02:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: I have a polygon shaped something like a sausage and need to find two points that are approximately at the ends on the polygon. Convex or concave, it can be on any angle when created. Does anyone know of a routine/algorithm for this?</title>
      <link>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172081#M1042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could show some sample shapes it might help, since S and C shaped figures and other self-enclosing ones will obviously require a medial axis (also look up 'skeleton') approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 03:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/i-have-a-polygon-shaped-something-like-a-sausage/m-p/172081#M1042</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-15T03:21:28Z</dc:date>
    </item>
  </channel>
</rss>

