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

GDL
About building parametric objects with GDL.

Creating an elliptical hemisphere

minami
Participant

Is it possible to create an elliptical hemisphere like the image with GDL commands?
If so, what command should I use?

 

elliptical_hemisphere.png

10 REPLIES 10
Barry Kelly
Moderator

You could use a SPHERE and cut it in half.

Or better still there is an ELLIPS command that is half a sphere where you can control the height independent of the radius.

 

But in either case to elongate one axis, you will need to use the MUL command.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru

For the shape presented, ELLIPS would not work as that would create tangents along the cut rather than a Spherical Cap.

 

For the presented shape 3 variables would need to be defined. R1 you circles radius, R2 to distort it using MUL and H, used in conjunction with R1 to calculate R3, your spheres radius.

 

R3 = ( R1^2 + H^2 ) / 2H

 

With R3 in hand, you can then subtract H to set your CUTPLANE. OR better, offset your sphere into your cutplane.

 

 

 

Ling.

ps. Curious what would require such a shape... something that requires an object to be scripted...

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
DGSketcher
Legend

If you don't want to use GDL an alternative would be to use the Shell tool.

 

Basically you would draw a half ellipse and rotate it around the long axis by 180 degrees.

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)

Or just use the 'ellipsoid' primitive shape object in the default library.

It even has a cutting plan for half an ellipsoid.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

🤔 I can't believe the primitives are localised but I'm not seeing that split option in the UKI library...

 

DGSketcher_0-1695990940436.png

 

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)

I only have 22 open at the moment.

 

BarryKelly_0-1696156339999.png

 

 

This is what I see (AUS library).

Unless it has changed in later versions?

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

I just checked 26 and no there is no cutting plane option or hollow shell.

Why do they take options away?

 

There is a semi-sphere object, but you can not stretch it.

 

That ellipsoid I have in 22 may even be from an older library still.

It has no license restrictions or author information I can see, so I have attached it here.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Yep, Ellipsoid 22 does not have the option...

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

I checked out the origin of that object I posted and it looks like it is from version 10.

It seems newer amended objects are not always better (did someone say 'cabinets' ? )

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!