<?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: Polygon operations in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145593#M22705</link>
    <description>and added of course this ziiz=get(1) in the loop to get 3 times instead of 2</description>
    <pubDate>Tue, 01 Dec 2009 08:39:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-12-01T08:39:26Z</dc:date>
    <item>
      <title>Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145585#M22697</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Is there someone willing to show an example of use of the "polyoperations" functions?&lt;BR /&gt;
Please!!!&lt;BR /&gt;
I can't find my way in using this function.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Nov 2009 15:10:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145585#M22697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-26T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145586#M22698</link>
      <description>Does this page help?&lt;BR /&gt;
Would be helpful to put your AC version in your signature.&lt;BR /&gt;
&lt;BR /&gt;
AC12:&lt;BR /&gt;
&lt;A href="http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/12/Window-Macros/PolygonOperations.html" target="_blank"&gt;&lt;LINK_TEXT text="http://www.graphisoft.com/ftp/techsuppo ... tions.html"&gt;http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/12/Window-Macros/PolygonOperations.html&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
AC13:&lt;BR /&gt;
&lt;A href="http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/13/Window-Macros/PolygonOperations.html" target="_blank"&gt;&lt;LINK_TEXT text="http://www.graphisoft.com/ftp/techsuppo ... tions.html"&gt;http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/13/Window-Macros/PolygonOperations.html&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Thu, 26 Nov 2009 18:37:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145586#M22698</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-11-26T18:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145587#M22699</link>
      <description>Thanks Laszlo,&lt;BR /&gt;
but i was more thinking about the Polyop extension (ch=INITADDONSCOPE ("PolyOperations ", "", "")) which is said by Zsolt to be a more effective way to do such operations.&lt;BR /&gt;
Although I will look with this macro.&lt;BR /&gt;
But that would be very very very nice to see just a little example of use of the extension to see how we can use it. The source containers etc.. are a bit difficult to understand from scratch.&lt;BR /&gt;
Maybe there is an object in the library using it?&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
olivier&lt;BR /&gt;
&lt;BR /&gt;
AC v13, winVista</description>
      <pubDate>Fri, 27 Nov 2009 09:38:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145587#M22699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-27T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145588#M22700</link>
      <description>There is an example object called PolyOperations_Example.gsm in the Sample Objects folder of the Basic Library.&lt;BR /&gt;
&lt;BR /&gt;
You can download it from &lt;A href="http://www.graphisoft.com/support/developer/downloads/" target="_blank"&gt;http://www.graphisoft.com/support/developer/downloads/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The extension is much more effective and capable than the macro indeed!&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Fri, 27 Nov 2009 10:49:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145588#M22700</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-11-27T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145589#M22701</link>
      <description>Thanks a lot!&lt;BR /&gt;
BTW I have been trying to use the polyoperations macro to calculate areas, but it appears to me that the results are bit different than what they should be. (if i draw a polygon and see the area)&lt;BR /&gt;
Is that a bug?&lt;BR /&gt;
You can't use the addon to calculate areas, can you?&lt;BR /&gt;
(in that case it is not documented in the manual)&lt;BR /&gt;
thanks,&lt;BR /&gt;
regards,&lt;BR /&gt;
olivier</description>
      <pubDate>Fri, 27 Nov 2009 15:40:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145589#M22701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-27T15:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145590#M22702</link>
      <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;I have been trying to use the polyoperations macro to calculate areas, but it appears to me that the results are bit different than what they should be. (if i draw a polygon and see the area)&lt;BR /&gt;
Is that a bug?&lt;/BLOCKQUOTE&gt;

It can be considered as a bug, sure. Please report the details and we'll see about the priority.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;You can't use the addon to calculate areas, can you?&lt;BR /&gt;
(in that case it is not documented in the manual)&lt;/BLOCKQUOTE&gt;

The documentation is complete - consequently there is no area calculation. One reason to include it would be to completely replace the old macro...&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Fri, 27 Nov 2009 17:05:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145590#M22702</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-11-27T17:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145591#M22703</link>
      <description>Here is the code from the Polygonoperations.gsm macro:&lt;BR /&gt;
&lt;BR /&gt;
----&lt;BR /&gt;
                area=0&lt;BR /&gt;
&lt;BR /&gt;
		tempNumPnts = nsp/3&lt;BR /&gt;
&lt;BR /&gt;
		areaLX = get(1)	! Last point&lt;BR /&gt;
		areaLY = get(1)&lt;BR /&gt;
		!!ziiz=get(1)&lt;BR /&gt;
		areaFX = areaLX	! First point&lt;BR /&gt;
		areaFY = areaLY&lt;BR /&gt;
&lt;BR /&gt;
		for areaI=1 to tempNumPnts-1&lt;BR /&gt;
			areaX = get(1)&lt;BR /&gt;
			areaY = get(1)&lt;BR /&gt;
			!!ziiz=get(1)&lt;BR /&gt;
			area = area + (areaX + areaLX) * (areaY - areaLY) * 0.5&lt;BR /&gt;
&lt;BR /&gt;
			areaLX = areaX&lt;BR /&gt;
			areaLY = areaY&lt;BR /&gt;
		next areaI&lt;BR /&gt;
		area = area + (areaFX + get(1)) * (areaFY - get(1)) * 0.5&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-------&lt;BR /&gt;
&lt;BR /&gt;
I add this in the beginning to give my polygon:&lt;BR /&gt;
-------&lt;BR /&gt;
for i=1 to vardim1(ac_coords)&lt;BR /&gt;
	put ac_coords&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[2],ac_coords&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;[3],0&lt;BR /&gt;
next i&lt;BR /&gt;
&lt;BR /&gt;
------&lt;BR /&gt;
ac_coords comes from the accessories API&lt;BR /&gt;
&lt;BR /&gt;
but the resulting area is totally false...&lt;BR /&gt;
&lt;BR /&gt;
I don't understand this code anyway which should call 3 times "get" per loop but "gets" only 2 times per loop.&lt;BR /&gt;
Is there something obvious that I missed?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Olivier</description>
      <pubDate>Mon, 30 Nov 2009 12:49:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145591#M22703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-30T12:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145592#M22704</link>
      <description>Ok, I think I fixed the little bug in the macro:&lt;BR /&gt;
--&lt;BR /&gt;
for areaI=1 to tempNumPnts-1 &lt;BR /&gt;
---&lt;BR /&gt;
should be&lt;BR /&gt;
--&lt;BR /&gt;
for areaI=1 to tempNumPnts-2&lt;BR /&gt;
--&lt;BR /&gt;
now it seems to work.&lt;BR /&gt;
&lt;BR /&gt;
However it doesn't work if there are holes in the polygon.&lt;BR /&gt;
Some more work should fix this second problem.</description>
      <pubDate>Tue, 01 Dec 2009 08:17:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145592#M22704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-01T08:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145593#M22705</link>
      <description>and added of course this ziiz=get(1) in the loop to get 3 times instead of 2</description>
      <pubDate>Tue, 01 Dec 2009 08:39:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145593#M22705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-01T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145594#M22706</link>
      <description>The macro is designed to handle 2D polygons defined by two coordinate points. You modified it to handle 3 coordinates per point:)&lt;BR /&gt;
&lt;BR /&gt;
Regs,</description>
      <pubDate>Tue, 01 Dec 2009 09:54:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145594#M22706</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-12-01T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145595#M22707</link>
      <description>The array it is supposed to take in is based on a three dimesnional input,  the third dimension being the arc.&lt;BR /&gt;
Of course it is a 2d polygon, the notion of polygon being defined by points in the same plane.&lt;BR /&gt;
So imo it is a bug.&lt;BR /&gt;
&lt;BR /&gt;
This is how the macro is introduced:&lt;BR /&gt;
&lt;BR /&gt;
600:&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
! Calculate polygon area&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
! Input:&lt;BR /&gt;
!	srcPolygon1:	input source of polygon 1 (INPUT_NO, INPUT_FROM_PARAMETER, INPUT_FROM_GDL_STACK)&lt;BR /&gt;
!	polygon1:		input polygon 1&lt;BR /&gt;
!	srcPolygon2:	input source of polygon 2 (INPUT_NO, INPUT_FROM_PARAMETER, INPUT_FROM_GDL_STACK)&lt;BR /&gt;
!	polygon2:		input polygon 2&lt;BR /&gt;
!	result:			output result (OUTPUT_TO_PARAMETER, OUTPUT_TO_GDL_STACK)&lt;BR /&gt;
!	GDL stack:		coordX[1], coordY[1], arc[1], ...&lt;BR /&gt;
!&lt;BR /&gt;
! Output:&lt;BR /&gt;
!	area:			area of polygon&lt;BR /&gt;
!	GDL stack:		[1]: area of polygon&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
! Remarks:&lt;BR /&gt;
!	The input polygon must have closed&lt;BR /&gt;
! ==============================================================================&lt;BR /&gt;
regards,&lt;BR /&gt;
O</description>
      <pubDate>Wed, 02 Dec 2009 12:52:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145595#M22707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-02T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145596#M22708</link>
      <description>With the polygonoperations you can define polygon 1:&lt;BR /&gt;
&lt;BR /&gt;
 "PREPAREFUNCTION ch, "Store", "poly1", nVertices1, nContours1, vertArr1, contArr1,&lt;BR /&gt;
	defaultInhEdgeInfo, inhEdgeInfos1&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to use this information in another object in the same project?</description>
      <pubDate>Tue, 22 Dec 2009 10:50:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/145596#M22708</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2009-12-22T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon operations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/334584#M22709</link>
      <description>&lt;P&gt;Are there any now functioning examples for the "polygon-operations-addin" for GDL to download here somewhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried to get a "profile-manager-profile" for working as a path for a Window-Opening and want to get this Path-Polygone smaller as a frame in the polygone and have to polygone-operate this path smaller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The old link down in this task is erroring 404... file not found..&lt;/P&gt;&lt;P&gt;&lt;A href="https://graphisoft.com/support/developer/downloads/" target="_blank"&gt;https://graphisoft.com/support/developer/downloads/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i trie to do:&amp;nbsp;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTESTKSrbOvU%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTESTKSrbOvU&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTESTKSrbOvU%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="113" scrolling="no" title="Archicad25 GDL polygon operation question" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my link to my Testfile:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/ku1pu4eook36i9a/Freiformfenster%20mit%202%20Profilen.pln?dl=0" target="_self"&gt;https://www.dropbox.com/s/ku1pu4eook36i9a/Freiformfenster%20mit%202%20Profilen.pln?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 12:42:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Polygon-operations/m-p/334584#M22709</guid>
      <dc:creator>Hmooslechner</dc:creator>
      <dc:date>2022-04-04T12:42:45Z</dc:date>
    </item>
  </channel>
</rss>

