<?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: Does TopographySurface.GetBoundaryPoints guarantee point ordering? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5578438#M73132</link>
    <description>&lt;P&gt;Dear Klanea,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the appreciation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad you find it useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Revit API does in fact provide a method to sort a collection of curves into a contiguous loop, provided by the&amp;nbsp;ExporterIfcUtils class and exercised by the RoomEditorApp sample code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/01/exporterifcutils-curve-loop-sort-and-validate.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/01/exporterifcutils-curve-loop-sort-and-validate.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I look forward to seeing the implementation that you come up with and will happily share that on The Building Coder as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2015 22:05:38 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2015-04-09T22:05:38Z</dc:date>
    <item>
      <title>Does TopographySurface.GetBoundaryPoints guarantee point ordering?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5565632#M73129</link>
      <description>&lt;P&gt;I'd like to extract &lt;EM&gt;consecutive&amp;nbsp;&lt;/EM&gt;boundary points of a TopographySurface, i.e., by traversing the returned List[XYZ], I'm simulating a continuous, vertex-by-vertex walk around the TopographySurface perimeter. I suspect all of this information must live in the underlying data structure, but I can't find out how to get at it, and the documentation makes no mention of ordering:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://revitapisearch.com/html/f34dbefb-94de-43e8-967d-8662f6593dac.htm"&gt;http://revitapisearch.com/html/f34dbefb-94de-43e8-967d-8662f6593dac.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried probing the Vertices member of the underlying Mesh (with a call to Geometry.GetEnumator()), but this returns boundary &lt;EM&gt;and&lt;/EM&gt; interior points, also in an unknown order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know how best to extract this information directly from the API, or else have insight into the order guaranteed by a call to&amp;nbsp;TopographySurface.GetBoundaryPoint()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 18:30:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5565632#M73129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-31T18:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does TopographySurface.GetBoundaryPoints guarantee point ordering?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5573398#M73130</link>
      <description>&lt;P&gt;Dear Klanea,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the far distant past, you could not even ask the topography surface which points were interior or exterior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, I implemented an add-in to determine this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/03/toposurface-interior-and-boundary-points.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2011/03/toposurface-interior-and-boundary-points.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The interior versus exterior predicate was later added to the API, cf. &lt;A href="http://thebuildingcoder.typepad.com/blog/2013/04/whats-new-in-the-revit-2014-api.html" target="_blank"&gt; What's New in the Revit 2014 API&lt;/A&gt; &amp;gt; Reading points from a TopographySurface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, my old add-in should help provide what you need as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 09:38:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5573398#M73130</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-04-07T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Does TopographySurface.GetBoundaryPoints guarantee point ordering?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5577946#M73131</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your&amp;nbsp;reply.&amp;nbsp;That's a great blog post; kudos! I'll go ahead and implement a "toposurface boundary loop" utility&amp;nbsp;using the underlying mesh facilities of TopographySurface. I just wanted to&amp;nbsp;make sure I wasn't&amp;nbsp;missing a feature/trick&amp;nbsp;in the API docs! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for lighting the way!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:06:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5577946#M73131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T17:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does TopographySurface.GetBoundaryPoints guarantee point ordering?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5578438#M73132</link>
      <description>&lt;P&gt;Dear Klanea,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the appreciation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad you find it useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Revit API does in fact provide a method to sort a collection of curves into a contiguous loop, provided by the&amp;nbsp;ExporterIfcUtils class and exercised by the RoomEditorApp sample code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/01/exporterifcutils-curve-loop-sort-and-validate.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/01/exporterifcutils-curve-loop-sort-and-validate.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I look forward to seeing the implementation that you come up with and will happily share that on The Building Coder as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 22:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/does-topographysurface-getboundarypoints-guarantee-point/m-p/5578438#M73132</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-04-09T22:05:38Z</dc:date>
    </item>
  </channel>
</rss>

