<?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: ProfileVectorImage polygon operation in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251086#M3368</link>
    <description>That was the original code but it also crashes. Then I made some changes (not only on that part but also on some other part of the code) and still crashes.&lt;BR /&gt;
&lt;BR /&gt;
Now, I changed that part back to what you suggest. Now it is working.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
    <pubDate>Fri, 12 Oct 2018 05:02:47 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2018-10-12T05:02:47Z</dc:date>
    <item>
      <title>ProfileVectorImage polygon operation</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251084#M3366</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Is there an intersection (and other polygon) operation for ProfileVectorImage? Currently I am using:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;try { pvi.GetVectorImage().Strip(cutPoly, &amp;amp;vi); }
catch (const GS::Exception&amp;amp; e) { WriteReport("%s", e.GetMessage().ToCStr().Get()); };
vi.CheckAndRepair();
&lt;/PRE&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;pvi is the source ProfileVectorImage;&lt;BR /&gt;&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;vi is the output VectorImage;&lt;BR /&gt;&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;cutPoly is the IrregularPolygon2D that counts as a cutter;&lt;BR /&gt;&lt;BR /&gt;But it sometimes crashes.&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Oct 2022 11:37:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251084#M3366</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2022-10-05T11:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: ProfileVectorImage polygon operation</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251085#M3367</link>
      <description>&lt;BLOCKQUOTE&gt;ReignBough wrote:&lt;BR /&gt;
Is there an intersection (and other polygon) operation for ProfileVectorImage? Currently I am using:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;try { pvi.GetVectorImage().Strip(cutPoly, &amp;amp;vi); }
catch (const GS::Exception&amp;amp; e) { WriteReport("%s", e.GetMessage().ToCStr().Get()); };
vi.CheckAndRepair();
&lt;/PRE&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;pvi &lt;E&gt;&lt;/E&gt;is the source ProfileVectorImage;&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;vi &lt;E&gt;&lt;/E&gt;is the output VectorImage;&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;cutPoly&lt;E&gt;&lt;/E&gt; is the IrregularPolygon2D that counts as a cutter;&lt;BR /&gt;
&lt;BR /&gt;
But it sometimes crashes.
&lt;/BLOCKQUOTE&gt;

Have you tried to copy the source?
&lt;PRE&gt;VectorImage vecIm = pvi.GetVectorImage ();
vecIm.Strip (cutPoly, &amp;amp;vi);&lt;/PRE&gt;

If it still crashes, could you please write it to an XML file, and send me that?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Akos</description>
      <pubDate>Thu, 11 Oct 2018 16:12:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251085#M3367</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2018-10-11T16:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: ProfileVectorImage polygon operation</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251086#M3368</link>
      <description>That was the original code but it also crashes. Then I made some changes (not only on that part but also on some other part of the code) and still crashes.&lt;BR /&gt;
&lt;BR /&gt;
Now, I changed that part back to what you suggest. Now it is working.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 12 Oct 2018 05:02:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251086#M3368</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2018-10-12T05:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: ProfileVectorImage polygon operation</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251087#M3369</link>
      <description>BTW, is there a "Strip" function for ProfileVectorImage ?</description>
      <pubDate>Tue, 23 Oct 2018 09:21:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ProfileVectorImage-polygon-operation/m-p/251087#M3369</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2018-10-23T09:21:32Z</dc:date>
    </item>
  </channel>
</rss>

