Rectangle with smooth angles in GH

Hi,
I am trying to represent this with grasshopper:


image

The 3 dimensions of the ‘rectangular cube’ are controlable with a slider.


I am having a problem representing the edges of the ‘rectangular cube’.
I need to link the 2 rails with a tangent curve, cant find how to do this.

Moreover, I noticed that the sweep function wouldn’t link the 2 rails properly when I change their dimension
image

I am sure there is a more simple way to do this (i simply represented 3 rectangles and linked them with sweep to make a volume).

Thanks

If ever you want to check the .GH
Grasshopper-citerne-test2.gh (10.1 KB)

How about using Loft rather then Sweep1 if you can generate enough section profiles?

Grasshopper-citerne-test2_re.gh (32.5 KB)

1 Like

Thanks a lot, its working great!
The way you solved it is very interesting, I did not know describing something so precisely was possible, I’m still working on understanding every part of your program.
I could have used Loft indeed (creating every line manually, not very efficient, so I preferred not to do it).
We might not be on the same version of the software, I added a ‘text trim’ to make it run.


One question, how do you retrieve a specific value from your list (the middle rectangle) ?

got it! (had to zoom to see the + sign)
image

This is a quick fix for filleted corners (doesn’t stand well to zebra analysis though)

case.gh (12.3 KB)

2 Likes

Yes, nice simple way for @Labar though…
Two more profiles at the start and end of rectangles would help to make tangential loft.

Tangential Loft_re.gh (12.9 KB)

2 Likes

Thanks @HS_Kim, @anikolo , that is great, the second .gh seems more simple indeed, the additional parameters can be useful to control for me. The ‘tangential loft’ is required.
I will use the elements of both programs to go further and adapt it a bit.
(I will make this dimension controllable)
image