<?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: Geometry::Polygon2D to Geometry::Polygon2DData in AC18? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Geometry-Polygon2D-to-Polygon2DData-in-AC18/m-p/237250#M5396</link>
    <description>Thanks!</description>
    <pubDate>Tue, 13 Jan 2015 11:48:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-13T11:48:19Z</dc:date>
    <item>
      <title>[SOLVED] Geometry::Polygon2D to Polygon2DData in AC18?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Geometry-Polygon2D-to-Polygon2DData-in-AC18/m-p/237248#M5394</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;I used following code to convert Geometry::Polygon2D to Geometry::Polygon2DData in AC 17.
&lt;PRE&gt; 
Geometry::Polygon2D polygon2D; 
Geometry::Polygon2DData polygon2DData; 
polygon2D.Convert(polygon2DData); 
&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;This Convert function is removed.&lt;BR /&gt;Any ideas how to do the conversion in AC18?&lt;BR /&gt;&lt;BR /&gt;This is part of the following process: &lt;BR /&gt;1. List of VectorImage iterated. &lt;BR /&gt;2. Each VectorImage with item_Typ SyHatch is converter using ConvSyHatchToPolygon to Geometry::MultiPolygon2D. &lt;BR /&gt;3. MultiPolygon2D(s) are iterated. &lt;BR /&gt;4. &lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;Each Geometry::Polygon2D in MultiPolygon2D is converted to Geometry::Polygon2DData. &lt;BR /&gt;5. An union is made from all Polygon2DData using Geometry::UnifyPolygon2DData. &lt;BR /&gt;6. The coordinates are extracted from the union using Polygon2DDataToPolyline &lt;BR /&gt;&lt;BR /&gt;-Matti&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:54:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Geometry-Polygon2D-to-Polygon2DData-in-AC18/m-p/237248#M5394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-01T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry::Polygon2D to Geometry::Polygon2DData in AC18?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Geometry-Polygon2D-to-Polygon2DData-in-AC18/m-p/237249#M5395</link>
      <description>Hi Matti, &lt;BR /&gt;
 &lt;BR /&gt;
use Geometry::ConvertPolygon2DToPolygon2DData function to convert Geometry::Polygon2D to Geometry::Polygon2DData in AC 18. 
&lt;PRE&gt;Geometry::Polygon2DData polygon2DData; 
Geometry::InitPolygon2DData (&amp;amp;polygon2DData); 
Geometry::ConvertPolygon2DToPolygon2DData (polygon2DData, polygon2D);&lt;/PRE&gt; &lt;BR /&gt;
 
&lt;BLOCKQUOTE&gt;Matti wrote:&lt;BR /&gt;4. &lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;Each Geometry::Polygon2D in MultiPolygon2D is converted to Geometry::Polygon2DData. &lt;E&gt;&lt;/E&gt; &lt;BR /&gt;
5. An union is made from all Polygon2DData using Geometry::UnifyPolygon2DData.&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
It could be faster if you use Unify method in MultiPolygon2D before conversions: &lt;BR /&gt;
4. An union is made from MultiPolygon2D using multiPolygon2D.Unify () &lt;BR /&gt;
5. Each Polygon2D in result MultiPolygon2D is converted to Polygon2DData by Geometry::ConvertPolygon2DToPolygon2DData&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tibor</description>
      <pubDate>Tue, 13 Jan 2015 09:42:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Geometry-Polygon2D-to-Polygon2DData-in-AC18/m-p/237249#M5395</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2015-01-13T09:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry::Polygon2D to Geometry::Polygon2DData in AC18?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Geometry-Polygon2D-to-Polygon2DData-in-AC18/m-p/237250#M5396</link>
      <description>Thanks!</description>
      <pubDate>Tue, 13 Jan 2015 11:48:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Geometry-Polygon2D-to-Polygon2DData-in-AC18/m-p/237250#M5396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T11:48:19Z</dc:date>
    </item>
  </channel>
</rss>

