<?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: PolygonOperations in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140737#M25441</link>
    <description>&lt;BLOCKQUOTE&gt;Pertti wrote:&lt;BR /&gt;There is a macro object called "PolygonOperations.gsm" in the objectlibrary 12. What objects call this macro?  Is it possible to capture Archicad Complex Profiles to be used in gdl objects? &lt;BR /&gt;
For example a tube could use different profiles created by Complex Profiles.&lt;/BLOCKQUOTE&gt;

This macro was made with the same mindset as all others in the Basic Library: to give a quality implementation of useful generic task. In this case, this function is to provide some basic geometric operations with points, segment and polygons. It doesn't have any background magic in it.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, there is no way to use the complex profiles of ArchiCAD in GDL, yet(!). You shouldn't wait for that with any of your elements because it won't come in AC13 and there is no official promise for a given date.&lt;BR /&gt;
&lt;BR /&gt;
Until then, dealing with polygons in GDL is a pain, indeed. I think you already do it as it can be done - via arrays of coordinates.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;About your first question, I don't find examples in 12 Library, using "PolygonOperations" macro.&lt;/BLOCKQUOTE&gt;

Doing this complicated function is more efficient to implement in C++, that's why we made a new, faster and more rich implementation in a GDL add-on. It is called "PolyOperations", you can read about it in the GDL Reference Manual 12 from page 326. It provides a much more sophisticated way for executing operations on polygons.&lt;BR /&gt;
&lt;BR /&gt;
We replaced all uses of the v11 macro by this add-on in v12.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Zsolt</description>
    <pubDate>Thu, 18 Dec 2008 09:22:36 GMT</pubDate>
    <dc:creator>ztaskai</dc:creator>
    <dc:date>2008-12-18T09:22:36Z</dc:date>
    <item>
      <title>PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140726#M25430</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;There is a macro object called "PolygonOperations.gsm" in the objectlibrary 12. What objects call this macro?  Is it possible to capture Archicad Complex Profiles to be used in gdl objects? &lt;BR /&gt;
For example a tube could use different profiles created by Complex Profiles.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Dec 2008 11:02:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140726#M25430</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2008-12-16T11:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140727#M25431</link>
      <description>I think PolygonOperations.gsm has something to do with converting polygon based objects from the floorplan to GDL poly objects.&lt;BR /&gt;
&lt;BR /&gt;
It is possible to capture complex profile objects simply by saving them as a GDL object. You can either select it on the floorplan then 'file' &amp;gt; 'libraries and objects' &amp;gt; 'save selection as', or simply drag from the floorplan into the 3d script of an pre opened library part.&lt;BR /&gt;
&lt;BR /&gt;
Bear in mind this converts it into an 'sprism_{2}' so you lose any ability to use the profile manager to edit and choose between different profiles. The code is also horrendously complicated when you start using chained lengths of geometry. I don't know enough about GDL to say whether it can be simplified manually or not!</description>
      <pubDate>Tue, 16 Dec 2008 14:18:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140727#M25431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-16T14:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140728#M25432</link>
      <description>There is some info on "PolygonOperations" macro in &lt;A href="http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/12/" target="_blank"&gt;Basic Library Documentation&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Still interested? For example, in AC11, "CavityClosure" macro (doors and windows), used several macro calls to "PolygonOperations", but no more in AC12.&lt;BR /&gt;
So go figure. If you are not afraid by complexity ... good luck.</description>
      <pubDate>Tue, 16 Dec 2008 18:01:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140728#M25432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-16T18:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140729#M25433</link>
      <description>Thanks Olivier, I'm not entirely sure my description was completely right then, but looking at that technical information, who knows?! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 16 Dec 2008 19:02:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140729#M25433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-16T19:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140730#M25434</link>
      <description>Peter, your description is right, and as you say, who knows. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
All this stuff is sooo complex, I'm not sure any architect can understand. For myself, I don't.&lt;BR /&gt;
&lt;BR /&gt;
GDL is a nice but limited language, we all know. Paradoxically it turns into an incredible complexity level. &lt;BR /&gt;
Previous bugs are half corrected, and each new release adds new ones. This would deserve another thread.&lt;BR /&gt;
&lt;BR /&gt;
I tend to use old but simple GDL. Not so bad. At least it works from 8.1 to 12&lt;BR /&gt;
From my stats, a lot of people are stil on old versions. Backward compatibility is important. &lt;BR /&gt;
Yes we can.</description>
      <pubDate>Tue, 16 Dec 2008 21:29:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140730#M25434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-16T21:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140731#M25435</link>
      <description>A window in a polygon wall can read the wall contour polygon (ac_wallcontourpolygon) parametes array. It´s used in drawing the window opening in 2d.</description>
      <pubDate>Tue, 16 Dec 2008 21:42:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140731#M25435</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2008-12-16T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140732#M25436</link>
      <description>&lt;BLOCKQUOTE&gt;Pertti wrote:&lt;BR /&gt;A window in a polygon wall can read the wall contour polygon (ac_wallcontourpolygon) parametes array. It´s used in drawing the window opening in 2d.&lt;/BLOCKQUOTE&gt;

Pertti,&lt;BR /&gt;
&lt;BR /&gt;
Could you explain a bit more, please? &lt;BR /&gt;
I'm not sure to understand clearly what you try to achieve.</description>
      <pubDate>Tue, 16 Dec 2008 22:08:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140732#M25436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-16T22:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140733#M25437</link>
      <description>Oliver, I´m trying to create a tube object, which can change and modify it´s profile. The route is defined by moving hotspots. The object can build lists, roads , fences or  walls.&lt;BR /&gt;
&lt;BR /&gt;
  It would be useful to have a storage of profiles you can choose between to create the tube.  Of course it´s fun to compare between different profiles, which one gives the most suitable result. Interactive playing with forms is the thing.&lt;BR /&gt;
&lt;BR /&gt;
Moreover, the route is a problem. How to make an array of points where you can add or remove points like you can do with archicad polygon tool...</description>
      <pubDate>Wed, 17 Dec 2008 17:27:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140733#M25437</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2008-12-17T17:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140734#M25438</link>
      <description>&lt;BLOCKQUOTE&gt;Pertti wrote:&lt;BR /&gt;How to make an array of points where you can add or remove points like you can do with archicad polygon tool...&lt;/BLOCKQUOTE&gt;

Pertti, take a look at the freeFormWindow on the depository. It is mabe by your compatriot Petri Leskinen.&lt;BR /&gt;
The contour is defined by an array in which you can add new hotspots. You could adapt this for the tube path. &lt;BR /&gt;
I have some examples of tube (array) in the library below. Insertion of new points is manual, but you can improve this, following Petri's example.&lt;BR /&gt;
&lt;BR /&gt;
For cross section, you can start with a list of values for different profiles.&lt;BR /&gt;
&lt;BR /&gt;
About your first question, I don't find examples in 12 Library, using "PolygonOperations" macro. Just this one, very similar, in case you need an example.&lt;BR /&gt;
Looking at "terrace_CavityClosure" macro, it calls a "terrace_PolygonOperations" macro, which looks the same as "PolygonOperations".&lt;BR /&gt;
I am not sure if this add-on can work with something else than doors/windows. If anyone has some info on this, I would be interested.</description>
      <pubDate>Wed, 17 Dec 2008 19:27:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140734#M25438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-17T19:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140735#M25439</link>
      <description>&lt;BLOCKQUOTE&gt;Pertti wrote:&lt;BR /&gt;
Moreover, the route is a problem. How to make an array of points where you can add or remove points like you can do with archicad polygon tool...&lt;/BLOCKQUOTE&gt;

the "Array" is the key word - rather ArrayS would be even better here - &lt;BR /&gt;
the trick is in pouring one array to another such way that adding or removing point is found out in the right position, anyway the pet palette is not possible (hopefully word "yet" could be added to the last sentence).&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Wed, 17 Dec 2008 19:43:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140735#M25439</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2008-12-17T19:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140736#M25440</link>
      <description>Pjotr wrote:"the trick is in pouring one array to another such way that adding or removing point is found out in the right position" &lt;BR /&gt;
-good idea! A new point can distinguish it´s position  if it is moved between existing points. Pouring ? any examples?&lt;BR /&gt;
I´m a poor pourer but it doesn´t stop me trying.&lt;BR /&gt;
&lt;BR /&gt;
The oher thing, saving profiles, may be done by "polygon operations extension" GDL-manual page 328. Needs studying...&lt;BR /&gt;
&lt;BR /&gt;
Petri´s Mesh3d -object is a fine exaple of smart programming - thank you Oliver of this link.</description>
      <pubDate>Thu, 18 Dec 2008 09:11:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140736#M25440</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2008-12-18T09:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140737#M25441</link>
      <description>&lt;BLOCKQUOTE&gt;Pertti wrote:&lt;BR /&gt;There is a macro object called "PolygonOperations.gsm" in the objectlibrary 12. What objects call this macro?  Is it possible to capture Archicad Complex Profiles to be used in gdl objects? &lt;BR /&gt;
For example a tube could use different profiles created by Complex Profiles.&lt;/BLOCKQUOTE&gt;

This macro was made with the same mindset as all others in the Basic Library: to give a quality implementation of useful generic task. In this case, this function is to provide some basic geometric operations with points, segment and polygons. It doesn't have any background magic in it.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, there is no way to use the complex profiles of ArchiCAD in GDL, yet(!). You shouldn't wait for that with any of your elements because it won't come in AC13 and there is no official promise for a given date.&lt;BR /&gt;
&lt;BR /&gt;
Until then, dealing with polygons in GDL is a pain, indeed. I think you already do it as it can be done - via arrays of coordinates.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;About your first question, I don't find examples in 12 Library, using "PolygonOperations" macro.&lt;/BLOCKQUOTE&gt;

Doing this complicated function is more efficient to implement in C++, that's why we made a new, faster and more rich implementation in a GDL add-on. It is called "PolyOperations", you can read about it in the GDL Reference Manual 12 from page 326. It provides a much more sophisticated way for executing operations on polygons.&lt;BR /&gt;
&lt;BR /&gt;
We replaced all uses of the v11 macro by this add-on in v12.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Zsolt</description>
      <pubDate>Thu, 18 Dec 2008 09:22:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140737#M25441</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2008-12-18T09:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140738#M25442</link>
      <description>Zsolt, &lt;BR /&gt;
&lt;BR /&gt;
Thanks for the clarification, that's very helpful.</description>
      <pubDate>Thu, 18 Dec 2008 10:15:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140738#M25442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-18T10:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140739#M25443</link>
      <description>&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, there is no way to use the complex profiles of ArchiCAD in GDL, yet(!). You shouldn't wait for that with any of your elements because it won't come in AC13 and there is no official promise for a given date.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Zsolt&lt;/BLOCKQUOTE&gt;

I hope for it soon - as it would be a quick workaround for badly joining columns with beams, beam&amp;amp; beams and so on....&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Thu, 18 Dec 2008 10:58:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140739#M25443</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2008-12-18T10:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140740#M25444</link>
      <description>&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Pertti wrote:&lt;BR /&gt;There is a macro object called "PolygonOperations.gsm" in the objectlibrary 12. What objects call this macro?  Is it possible to capture Archicad Complex Profiles to be used in gdl objects? &lt;BR /&gt;
For example a tube could use different profiles created by Complex Profiles.&lt;/BLOCKQUOTE&gt;

Unfortunately, there is no way to use the complex profiles of ArchiCAD in GDL, yet(!). You shouldn't wait for that with any of your elements because it won't come in AC13 and there is no official promise for a given date.&lt;BR /&gt;
&lt;BR /&gt;
Until then, dealing with polygons in GDL is a pain, indeed. I think you already do it as it can be done - via arrays of coordinates.&lt;BR /&gt;
&lt;BR /&gt;
Zsolt&lt;/BLOCKQUOTE&gt;

When I first read Pertti's question I thought he was describing how the MEP routing works: various sectional profiles called along a path. How then does MEP work?</description>
      <pubDate>Sat, 03 Jan 2009 02:55:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140740#M25444</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2009-01-03T02:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonOperations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140741#M25445</link>
      <description>&lt;BLOCKQUOTE&gt;Erika wrote:&lt;BR /&gt;When I first read Pertti's question I thought he was describing how the MEP routing works: various sectional profiles called along a path. How then does MEP work?&lt;/BLOCKQUOTE&gt;

MEP works by utilizing lots of API, GDL and even some inside-ArchiCAD functions. Basically, it implements the polygon editing in C++ in an add-on using API functions of ArchiCAD. Then it places GDL elements along the routed path. It's quite complicated. It's good that you mentioned it though - I forgot to mention the API based solution before.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Zsolt</description>
      <pubDate>Tue, 06 Jan 2009 08:26:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PolygonOperations/m-p/140741#M25445</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-01-06T08:26:48Z</dc:date>
    </item>
  </channel>
</rss>

