<?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: POLY2 Example with Arc? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87174#M33830</link>
    <description>Acording the GDL manual, POLY2 does not implement &lt;BR /&gt;
additional status codes but POLY2_  does unless you have&lt;BR /&gt;
a resol statement earlier in the script set to eight or less.&lt;BR /&gt;
Peter Devlin</description>
    <pubDate>Thu, 01 Jun 2006 22:04:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-01T22:04:00Z</dc:date>
    <item>
      <title>GDL: POLY2 Example with Arc?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87173#M33829</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Could someone please provide working GDL code for a POLY2 command that gives a half circle?  I just can't figure out the correct syntax for the POLY2 commands and it's driving me crazy!&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Jun 2006 21:16:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87173#M33829</guid>
      <dc:creator>genarch</dc:creator>
      <dc:date>2006-06-01T21:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: POLY2 Example with Arc?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87174#M33830</link>
      <description>Acording the GDL manual, POLY2 does not implement &lt;BR /&gt;
additional status codes but POLY2_  does unless you have&lt;BR /&gt;
a resol statement earlier in the script set to eight or less.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Thu, 01 Jun 2006 22:04:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87174#M33830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-01T22:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: POLY2 Example with Arc?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87175#M33831</link>
      <description>Okay, you got me on semantics... in any case, I'll just answer my own post:&lt;BR /&gt;
&lt;BR /&gt;
FILL circ_fill			! fill setting&lt;BR /&gt;
POLY2_ 6, 3,&lt;BR /&gt;
	0,0,1,			! node&lt;BR /&gt;
	-bcirc,0,1,		! node&lt;BR /&gt;
	1,90,800,			! set tangent (see Additional Status Codes)&lt;BR /&gt;
	bcirc,-180,2000,	! tangential arc by radius and angle&lt;BR /&gt;
	bcirc,0,1,			! node&lt;BR /&gt;
	0,0,1			! repeat first node&lt;BR /&gt;
&lt;BR /&gt;
Where "bcirc" is a dimension defined in the parameters.  The result of the POLY2_ above give a half circle fill of radius "bcirc".</description>
      <pubDate>Thu, 01 Jun 2006 22:18:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87175#M33831</guid>
      <dc:creator>genarch</dc:creator>
      <dc:date>2006-06-01T22:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: POLY2 Example with Arc?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87176#M33832</link>
      <description>Your example:&lt;BR /&gt;
&lt;BR /&gt;
FILL circ_fill  &lt;BR /&gt;
POLY2_ 6, 3, &lt;BR /&gt;
0,0,15,&lt;BR /&gt;
-bcirc,0,15,&lt;BR /&gt;
0,90,815,  &lt;BR /&gt;
bcirc,-180,2015, &lt;BR /&gt;
bcirc,0,15, &lt;BR /&gt;
0,0,-1 &lt;BR /&gt;
&lt;BR /&gt;
another example&lt;BR /&gt;
&lt;BR /&gt;
FILL circ_fill  &lt;BR /&gt;
POLY2_ 4,3,&lt;BR /&gt;
bcirc,0,15,&lt;BR /&gt;
0,0,915,&lt;BR /&gt;
bcirc,180,4015,&lt;BR /&gt;
bcirc,0,-1&lt;BR /&gt;
&lt;BR /&gt;
CU mirco</description>
      <pubDate>Mon, 05 Jun 2006 17:05:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87176#M33832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-05T17:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: POLY2 Example with Arc?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87177#M33833</link>
      <description>Or you can use this one:&lt;BR /&gt;
&lt;BR /&gt;
FILL circ_fill&lt;BR /&gt;
POLY2_ 3,1+2+4,&lt;BR /&gt;
bcirc,0,1,&lt;BR /&gt;
0,1,801,&lt;BR /&gt;
-bcirc,0,1001&lt;BR /&gt;
&lt;BR /&gt;
In your examples, you have used 15 for the status-values. This works, but is normally used for 3D-commands. In 2D status is defined with 0 or 1, what you should use.&lt;BR /&gt;
&lt;BR /&gt;
To use a 4 in the mask (1+2+&lt;B&gt;4&lt;/B&gt;) makes the last point superfluously.&lt;BR /&gt;
&lt;BR /&gt;
@genarch&lt;BR /&gt;
In your working example is the tangent IMHO not proper done, because it shouldn't have an x component. You have some needless points too.&lt;BR /&gt;
It works proper like this:&lt;BR /&gt;
&lt;BR /&gt;
POLY2_ 3, 1+2+4,&lt;BR /&gt;
-bcirc,0,1,&lt;BR /&gt;
0,1,801,&lt;BR /&gt;
bcirc,-180,2001&lt;BR /&gt;
&lt;BR /&gt;
And last possibility is&lt;BR /&gt;
&lt;BR /&gt;
POLY2_ 3, 1+2+4,&lt;BR /&gt;
-bcirc,0,1,&lt;BR /&gt;
0,0,901,&lt;BR /&gt;
bcirc,0,3001</description>
      <pubDate>Tue, 06 Jun 2006 06:43:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87177#M33833</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-06-06T06:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: POLY2 Example with Arc?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87178#M33834</link>
      <description>&lt;BLOCKQUOTE&gt;In your examples, you have used 15 for the status-values. This works, but is normally used for 3D-commands. In 2D status is defined with 0 or 1, what you should use. 
&lt;/BLOCKQUOTE&gt;

I know Frank but ....&lt;BR /&gt;
&lt;BR /&gt;
what seems an error can become an advantage.&lt;BR /&gt;
&lt;BR /&gt;
Put bcirc,0,15, &lt;BR /&gt;
0,0,915, &lt;BR /&gt;
bcirc,180,4015, &lt;BR /&gt;
bcirc,0,-1 &lt;BR /&gt;
&lt;BR /&gt;
FILL circ_fill &lt;BR /&gt;
&lt;BR /&gt;
POLY2_ nsp/3,3, &lt;BR /&gt;
use (nsp)&lt;BR /&gt;
&lt;BR /&gt;
PRISM_ nsp/3, ZZYZX,&lt;BR /&gt;
get(nsp)&lt;BR /&gt;
&lt;BR /&gt;
CU mirco</description>
      <pubDate>Wed, 07 Jun 2006 07:33:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87178#M33834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-07T07:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: POLY2 Example with Arc?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87179#M33835</link>
      <description>That's right, but you set unused bits of the status, which might become in coming GDL-Versions a meaning. Maybe such old objects will not work proper anymore. It might be conservative, but I try to use the exact syntax.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I try to solve it like this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_CONTEXT=2 THEN msk=1 ELSE msk=15&lt;BR /&gt;
&lt;BR /&gt;
PUT bcirc,0,msk,&lt;BR /&gt;
0,0,900+msk,&lt;BR /&gt;
bcirc,180,4000+msk,&lt;BR /&gt;
bcirc,0,-1</description>
      <pubDate>Wed, 07 Jun 2006 07:43:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-POLY2-Example-with-Arc/m-p/87179#M33835</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-06-07T07:43:16Z</dc:date>
    </item>
  </channel>
</rss>

