Modelling in grasshopper

Hello,

I have a daught on how to model geometry in grasshopper. I think that I am taking a not necessary long way while it must have a smarter way to do this.

I would like to have some tips to model geometry like this in a simpler way so my script gets optimized. Of course I could draw the lines in rhino and internalise data, but my focus is on learning the best way to model it in grasshopper and I think I am distant from it.


Modelling daught.gh (31.4 KB)

Hi Leo,

For this type of model there isn’t a quick road - unless you draw the geometry manually.

I think the first thing to do is to define the parametric inputs - the parameters that “make sense”, like thickness, fillet radiuses, overall dimensions, etc., from which all the others are derived.

Then, the most direct way to proceed in a case like this, where the geometric construction is simple (only horizontal and vertical lines), is to calculate the coordinates of the polygon vertices from those parameters, and create the polyline in one operation, and then create the planar surface with Boundary Surfaces.

Going further, probably in this case it would make sense to create a quick Python script which directly calculates the coordinates of the various points - it’s a lot faster and more readable than making a lot of simple operations with Grasshopper’s components.

things like:
Xa = Xb + L - M
Ya = Yb - R+2*L

are quite time consuming and not very readable in Grasshopper (unless you use “Evaluate” components).

You can still do everything in Grasshopper like you did, and it’s a good exercise, but so far I haven’t found an “easy way” :slight_smile:

Hope this helps.

This would definitely be faster!

Xa = Xb + L - M
Ya = Yb - R+2*L

Couldn’t understand what L, R and M means (sorry, I am a newbie to grasshopper and way worst in phyton or any programming language).

It was just an example, the letters are your starting numeric parameters, like Length, Radius etc…
Usually to find the coordinates you have to do those kind of operations, which are just easier in code.