We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Adjust the curves of my fill

JGoode
Expert
Hello,

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.

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.
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
FYI Master Script
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
And the pos values are as follows -
posx1 = 0
posx2 = 0
posx3 = 200
posx4 = 200
posy1 = 0
posy2 = 200
posy3 = 200
posy4 = 0

Thanks
ArchiCAD 23

Windows 10
13 REPLIES 13
JGoode
Expert
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.
ArchiCAD 23

Windows 10
Anonymous
Not applicable
I understand your frustration.
This is the classical example that GDL is not for the masses.
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.

I wonder if Grasshopper could handle this kind of thing.

Perhaps when we start having Artificial Intelligence for design, GDL will become popular among AI System.
sinceV6
Advocate
Hi all.
Long time not here
JGoode wrote:
...
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?
Something like this?
Braza wrote:
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.
You just have to do the trigonometry
What Braza states is accurate; but maaaaannn.... I remember doing the trig calculations and it sent me back to school.

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.

Cheers!
Best regards.
Lingwisyer
Guru
Intersecting Cord Theorem, interesting.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660