Grasshopper

algorithmic modeling for Rhino

Hi

Could anyone help me to merge the 2 larger rounded squares into the same list of smaller rounded squares? - please have a look at the GH file attached.. I am trying to loft the polygons together to achieve a shape like i have sketched in this elevation (refer to attachment)

I have limited knowledge of GH so thank you so much in advance to anyone who replies :)

Thanks

Isabella

Views: 1047

Attachments:

Replies to This Discussion

I was hoping to get the bottom of the rectangles to align rather than the tops so that the bump would occur above the tube (like in my original picture). Would that be achieved by altering the "expression" in your definition? 

Thanks again you have been so helpful. I apologise for all my questions

The quick answer is in the white group below (bottom right), where I added a 'bottom/top' switch:

To elaborate slightly, the 'PFrames' are aligned with their X direction pointing down...  Why?  I don't know.  But using negative X puts all the rectangles above the "rail" curve (yellow) instead of below.

I know, this is not the same as moving only the bump to the top.

To understand why that worked in forumupload_2017Sep19c.gh, an examination of that earlier code shows that you used a different curve ('Crv_2') to generate the smaller rectangles and used 'Crv_1' for two larger rectangles, which were then intermingled using 'Replace'. They are different frames of reference, aligned by careful construction of the two curves.

Here is a simpler version of that: forumupload_2017Sep21b.gh

So, ultimately, if you want to learn GH instead of just getting this code "fixed", it's important to understand these underlying principles and then apply them creatively.  There is rarely a single best solution.

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service