<?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: GDL Pgon code issue in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676077#M7946</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/106695"&gt;@RhinoX&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that the issue is coming from the definition of &lt;FONT face="courier new,courier"&gt;pgon1&lt;/FONT&gt; (the 3rd argument) in edge 04 (line 31)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not familiar with primitive elements but from my understanding, arguments &lt;FONT face="courier new,courier"&gt;pgon1&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;pgon2&lt;/FONT&gt; are the indices of the polygons they refer to. Edges 04 and 05 are edges of the second polygon so &lt;FONT face="courier new,courier"&gt;pgon1&lt;/FONT&gt; should be &lt;FONT face="courier new,courier"&gt;2&lt;/FONT&gt; I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhinoX_0-1756910643793.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/91743iD898056CC1C33074/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhinoX_0-1756910643793.png" alt="RhinoX_0-1756910643793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It you do this, does it work ?&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;edge 3, 4, 2, 0, 0 ! 04
edge 4, 1, 2, 0, 0 ! 05&lt;/LI-CODE&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2025 09:34:19 GMT</pubDate>
    <dc:creator>MF BIM</dc:creator>
    <dc:date>2025-09-08T09:34:19Z</dc:date>
    <item>
      <title>GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675646#M7942</link>
      <description>&lt;P&gt;Hi everyone, I’m still learning GDL and wrote a simple script to create two triangular polygons using the pgon command. For some reason, it keeps throwing an error and I can’t figure out why. Any help would be much appreciated. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhinoX_0-1756910643793.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/91610i44423593394F651B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhinoX_0-1756910643793.png" alt="RhinoX_0-1756910643793.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhinoX_1-1756910668223.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/91611i40115F13BB9389D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhinoX_1-1756910668223.png" alt="RhinoX_1-1756910668223.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;vert 0.00, 0.00, 0.00 ! 01
vert 1.00, 0.00, 0.00 ! 02
vert 1.00, 1.00, 0.00 ! 03
vert 0.00, 1.00, 0.00 ! 04

edge 1, 2, 1, 0, 0 ! 01
edge 2, 3, 1, 0, 0 ! 02
edge 3, 1, 1, 2, 0 ! 03
 
edge 3, 4, 1, 0, 0 ! 04
edge 4, 1, 1, 0, 0 ! 05

vect 0, 0, 1
vect 0, 0, 1
 
pgon 3, 1, 0, 1, 2, 3
pgon 3, 2, 0, 4, 5, -3&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhinoX_2-1756910845678.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/91613iCDBE2EE3F708C3D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhinoX_2-1756910845678.png" alt="RhinoX_2-1756910845678.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Intel-based &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 12:23:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675646#M7942</guid>
      <dc:creator>RhinoX</dc:creator>
      <dc:date>2025-09-06T12:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675696#M7943</link>
      <description>&lt;P&gt;I have not tried using pgons, but does it work without the the vert 4 points?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 01:53:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675696#M7943</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-09-04T01:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675791#M7944</link>
      <description>&lt;P&gt;No, it’s not possible. The points must be defined first before the edges can be determined.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 14:49:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675791#M7944</guid>
      <dc:creator>RhinoX</dc:creator>
      <dc:date>2025-09-04T14:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675860#M7945</link>
      <description>&lt;P&gt;I mean if you defined a single triangle rather than two with a common edge.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 01:28:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/675860#M7945</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-09-05T01:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676077#M7946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/106695"&gt;@RhinoX&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that the issue is coming from the definition of &lt;FONT face="courier new,courier"&gt;pgon1&lt;/FONT&gt; (the 3rd argument) in edge 04 (line 31)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not familiar with primitive elements but from my understanding, arguments &lt;FONT face="courier new,courier"&gt;pgon1&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;pgon2&lt;/FONT&gt; are the indices of the polygons they refer to. Edges 04 and 05 are edges of the second polygon so &lt;FONT face="courier new,courier"&gt;pgon1&lt;/FONT&gt; should be &lt;FONT face="courier new,courier"&gt;2&lt;/FONT&gt; I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhinoX_0-1756910643793.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/91743iD898056CC1C33074/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhinoX_0-1756910643793.png" alt="RhinoX_0-1756910643793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It you do this, does it work ?&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;edge 3, 4, 2, 0, 0 ! 04
edge 4, 1, 2, 0, 0 ! 05&lt;/LI-CODE&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 09:34:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676077#M7946</guid>
      <dc:creator>MF BIM</dc:creator>
      <dc:date>2025-09-08T09:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676564#M7955</link>
      <description>&lt;P&gt;Thanks, will try your way. Actually, I have just started learning GDL, but it feels like getting lost in a forest of commands and syntax. For example, when creating a terrain mesh, there are too many similar commands like Mesh, Pgon, Mass, Coons… I’m not sure which ones people usually use. Some seem rarely used, since there are very few tutorials about them. I think Graphisoft should remove some of the less commonly used commands so that beginners don’t get overwhelmed.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 23:28:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676564#M7955</guid>
      <dc:creator>RhinoX</dc:creator>
      <dc:date>2025-09-11T23:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676574#M7956</link>
      <description>&lt;P&gt;The &lt;EM&gt;Primitives&amp;nbsp;&lt;/EM&gt;command set you are tinkering around with is what the automatically generated scripts use as it is just constructing triangles which while mathamatically very simple, are not very intuitive... I have not seen&amp;nbsp;&lt;STRONG&gt;MASS&amp;nbsp;&lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;COONS&lt;/STRONG&gt; used before, though coons seems like a more primitive version of &lt;STRONG&gt;RULEDSHELL&lt;/STRONG&gt;... I feel like if you are going beyond&amp;nbsp;&lt;EM&gt;Basic Shapes&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;Planar Shapes&lt;/EM&gt;, you are going beyond a beginner level. A bit like the level of understanding between Python and C++.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are just starting out, find yourself a copy of the&amp;nbsp;&lt;EM&gt;GDL Cookbook&lt;/EM&gt;, though old and a bit out dated, it is still a great learning guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 01:53:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676574#M7956</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-09-12T01:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676659#M7957</link>
      <description>&lt;P&gt;Thanks a lot! I actually started with the Cookbook – it’s a fantastic resource – but it does feel quite old. I’m not sure if Graphisoft has introduced any smarter commands since then to replace the older ones. Right now I’m mainly trying to wrap my head around how Mesh works, and whether it’s possible to generate meshes through GDL using Grasshopper.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 15:53:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676659#M7957</guid>
      <dc:creator>RhinoX</dc:creator>
      <dc:date>2025-09-12T15:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676697#M7958</link>
      <description>&lt;P&gt;Fair enough, I should have known this query would have been somehow related to your other ones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding development of the language, I do not think there have been any modelling changes since I first played around with it during AC19... or at least any that would impact general use or process...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Sep 2025 19:00:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/676697#M7958</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-09-13T19:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Pgon code issue</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/679061#M8036</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;base ! -&amp;gt; always add base

vert 0.00, 0.00, 0.00 ! 01
vert 1.00, 0.00, 0.00 ! 02
vert 1.00, 1.00, 0.00 ! 03
vert 0.00, 1.00, 0.00 ! 04

edge 1, 2, 1, 0, 0 ! 01
edge 2, 3, 1, 0, 0 ! 02
edge 3, 1, 1, 2, 0 ! 03
 
edge 3, 4, 2, 0, 0 ! 04 ! -&amp;gt; pgon2
edge 4, 1, 2, 0, 0 ! 05 ! -&amp;gt; pgon2

vect 0, 0, 1
vect 0, 0, 1
 
pgon 3, 1, -1, 1, 2, 3 ! -&amp;gt; Status either specified &amp;gt; 0 or calculated &amp;lt; 0 but never just 0
pgon 3, 2, -1, 4, 5, -3 ! -&amp;gt; Status either specified &amp;gt; 0 or calculated &amp;lt; 0 but never just 0

body 1 ! always add body&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should work hth&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 13:00:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Pgon-code-issue/m-p/679061#M8036</guid>
      <dc:creator>rudl</dc:creator>
      <dc:date>2025-10-07T13:00:10Z</dc:date>
    </item>
  </channel>
</rss>

