<?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: Adjust the curves of my fill in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293584#M1299</link>
    <description>JGoode deffined a fixed centerpoint at the middle of each arched segment.&lt;BR /&gt;
If he wants to modify the arc curvature with a hotspot, the center point will necessarily be modified too.&lt;BR /&gt;
Unless he wants the angle to be fixed in -180 degrees.&lt;BR /&gt;
Or perhaps, most likely, I am missing the point.</description>
    <pubDate>Fri, 14 Feb 2020 10:54:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-14T10:54:37Z</dc:date>
    <item>
      <title>Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293575#M1290</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a fill object that I can adjust the points of the fill to wherever I want them. I also want to be able to adjust the curved sides.&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to achieve this with my script? I'd like to use a length hotspot to adjust the curve. Any help would be appreciated.&lt;BR /&gt;

&lt;PRE&gt;poly2_b{5}      13,      3,      0,      3,      19,      19, 
                   0,            0,            1,            0,            0,            1,            0, 

                   posx1,            posy1,      1, 
        		   mposx1,          mposy1,    900, 
                   0,         -180,   4001,
 
        		   posx2,          posy2,      1, 
        		 mposx2,          mposy2,    900, 
                   0,         -180,   4001,
 
        		 posx3,          posy3,      1, 
        		 mposx3,          mposy3,    900, 
                   0,         -180,   4001,
 
        		 posx4, 			 posy4,      1, 
        		 mposx4, 			 mposy4,    900, 
                   0,         -180,   4001,
 
                   posx1,            posy1,      1&lt;/PRE&gt;

FYI Master Script&lt;BR /&gt;

&lt;PRE&gt;mposx1 = ((posx1+posx2)/2)
mposx2 = ((posx2+posx3)/2)
mposx3 = ((posx3+posx4)/2)
mposx4 = ((posx4+posx1)/2)
parameters mposx1=mposx1, mposx2=mposx2, mposx3=mposx3, mposx4=mposx4

mposy1 = ((posy1+posy2)/2)
mposy2 = ((posy2+posy3)/2)
mposy3 = ((posy3+posy4)/2)
mposy4 = ((posy4+posy1)/2)
parameters mposy1=mposy1, mposy2=mposy2, mposy3=mposy3, mposy4=mposy4&lt;/PRE&gt;

And the pos values are as follows -&lt;BR /&gt;
posx1 = 0&lt;BR /&gt;
posx2 = 0&lt;BR /&gt;
posx3 = 200&lt;BR /&gt;
posx4 = 200&lt;BR /&gt;
posy1 = 0&lt;BR /&gt;
posy2 = 200&lt;BR /&gt;
posy3 = 200&lt;BR /&gt;
posy4 = 0&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Feb 2020 16:24:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293575#M1290</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2020-02-11T16:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293576#M1291</link>
      <description>Hi jGoode,&lt;BR /&gt;
You can control any of these parameters with Graphical Editable Hotspots.&lt;BR /&gt;
You can find all the information &lt;A href="http://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing" target="_blank"&gt;here&lt;/A&gt;.&lt;BR /&gt;
Hope that helps.</description>
      <pubDate>Tue, 11 Feb 2020 20:06:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293576#M1291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-11T20:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293577#M1292</link>
      <description>&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;
Hi jGoode,&lt;BR /&gt;
You can control any of these parameters with Graphical Editable Hotspots.&lt;BR /&gt;
You can find all the information &lt;A href="http://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing" target="_blank"&gt;here&lt;/A&gt;.&lt;BR /&gt;
Hope that helps.
&lt;/BLOCKQUOTE&gt;

Sorry, I must not have explained clearly. I know how to add hotspots to the rest of them (eg pos1x) but I want to be able to adjust the -180 values to adjust the curve. However I can't see how that's possible with the current method of adding the curves.</description>
      <pubDate>Wed, 12 Feb 2020 10:14:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293577#M1292</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2020-02-12T10:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293578#M1293</link>
      <description>Ok. I see.&lt;BR /&gt;
I think you can find some light in the &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=43721&amp;amp;hilit=editable+polyline+object#p220172" target="_blank"&gt;Dynamic Polyline base code&lt;/A&gt; that Mr. sinceV6 generously shared with us, and along with equal generous contributions of Mr.  Hmooslechner, Mr. Mariosmic and the legendary GDL master Mr. Olivier Dentan.&lt;BR /&gt;
Hope that helps.</description>
      <pubDate>Wed, 12 Feb 2020 10:41:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293578#M1293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-12T10:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293579#M1294</link>
      <description>I have previously seen this - however they don't have curved edges and the one that does, isn't a fill and therefore works differently to what I need.</description>
      <pubDate>Wed, 12 Feb 2020 16:27:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293579#M1294</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2020-02-12T16:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293580#M1295</link>
      <description>It is not a fill, but it has arched segments controlled by an editable hotspot.&lt;BR /&gt;
You can isolate the code for the hotspot and reverse engineering it apply to your fill.&lt;BR /&gt;
The &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=43721&amp;amp;hilit=editable+polyline+object&amp;amp;start=10#p233066" target="_blank"&gt;Mariosmic version&lt;/A&gt; seems to have what you need.  Have you tried?</description>
      <pubDate>Wed, 12 Feb 2020 17:54:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293580#M1295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-12T17:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293581#M1296</link>
      <description>I have seen this in the past and reviewed more recently - The curves are made out of Arcs which don't translate to fills at all.&lt;BR /&gt;
&lt;BR /&gt;
The method I want to use to be able to adjust the curve is have a centre point half way between the 2 points and then set the distance from the centre point to the arc – Is this possible to do in a fill and if so, how can I do it?</description>
      <pubDate>Thu, 13 Feb 2020 10:04:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293581#M1296</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2020-02-13T10:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293582#M1297</link>
      <description>Your arched fill segments are defined by &lt;A href="http://gdl.graphisoft.com/reference-guide/additional-status-codes" target="_blank"&gt;additional Status Codes&lt;/A&gt; 900 (center point) and 4000 (Arc using centerpoint and angle).&lt;BR /&gt;
If you want to control the arch using a length hotspot, you will have to tie the arc angle and center point with this length.&lt;BR /&gt;
You just have to do the trigonometry.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Feb 2020 17:13:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293582#M1297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-13T17:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293583#M1298</link>
      <description>Both of which he has used. Is not the issue here less the curves, more the definition of the hotspots as they are calculated in a straight line from origin?&lt;BR /&gt;
&lt;BR /&gt;
Given your code, does not the end point of the curve equal the following point? In turn that simplifies all of your hotspots to basic singular trig.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Fri, 14 Feb 2020 01:24:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293583#M1298</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2020-02-14T01:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293584#M1299</link>
      <description>JGoode deffined a fixed centerpoint at the middle of each arched segment.&lt;BR /&gt;
If he wants to modify the arc curvature with a hotspot, the center point will necessarily be modified too.&lt;BR /&gt;
Unless he wants the angle to be fixed in -180 degrees.&lt;BR /&gt;
Or perhaps, most likely, I am missing the point.</description>
      <pubDate>Fri, 14 Feb 2020 10:54:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293584#M1299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-14T10:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293585#M1300</link>
      <description>Braza, you're correct - at current the centre point definition is to the middle of the line however I've since come to learn that is not going to work as there's no way for AC to do what I want directly. I do want to modify the arc with a hotspot.</description>
      <pubDate>Fri, 14 Feb 2020 12:15:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293585#M1300</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2020-02-14T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293586#M1301</link>
      <description>I understand your frustration.&lt;BR /&gt;
This is the classical example that GDL is not for the masses. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; &lt;BR /&gt;
Anyone with visual/design background would expect to have a more easy way to control an arched edge.  Instead we have to do complex geometric calculations to get things the way we want.  i.e. Why don´t we have a fill status code that defines a node as a point in an arch between the previous and the next node?  And with this we could simple define an editable hotspot with this node position and freely edit.&lt;BR /&gt;
&lt;BR /&gt;
I wonder if Grasshopper could handle this kind of thing.   &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_question.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Perhaps when we start having Artificial Intelligence for design, GDL will become popular among AI System.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_twisted.gif" style="display : inline;" /&gt;</description>
      <pubDate>Sun, 16 Feb 2020 11:37:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293586#M1301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-16T11:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293587#M1302</link>
      <description>Hi all.&lt;BR /&gt;
Long time not here  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;

&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;
...&lt;BR /&gt;
The method I want to use to be able to adjust the curve is have a centre point half way between the 2 points and then set the distance from the centre point to the arc – Is this possible to do in a fill and if so, how can I do it?
&lt;/BLOCKQUOTE&gt;

Something &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=53253&amp;amp;p=257884#p257884" target="_blank"&gt;like this?&lt;/A&gt;&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;
If you want to control the arch using a length hotspot, you will have to tie the arc angle and center point with this length.&lt;BR /&gt;
You just have to do the trigonometry
&lt;/BLOCKQUOTE&gt;

What Braza states is accurate; but maaaaannn.... I remember doing the trig calculations and it sent me back to school.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
While the object in the gif is the updated polyline script, it is just a polyline. To make things work with fills and polys you'll need to make those extra status code points part of the moving hotspots. It is doable, but requires some work.&lt;BR /&gt;
&lt;BR /&gt;
Cheers!&lt;BR /&gt;
Best regards.</description>
      <pubDate>Sun, 23 Feb 2020 19:01:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293587#M1302</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2020-02-23T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the curves of my fill</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293588#M1303</link>
      <description>&lt;A href="https://math.stackexchange.com/questions/564058/calculate-the-radius-of-a-circle-given-the-chord-length-and-height-of-a-segment" target="_blank"&gt;Intersecting Cord Theorem&lt;/A&gt;, interesting.</description>
      <pubDate>Mon, 24 Feb 2020 01:46:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Adjust-the-curves-of-my-fill/m-p/293588#M1303</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2020-02-24T01:46:34Z</dc:date>
    </item>
  </channel>
</rss>

