Grasshopper

algorithmic modeling for Rhino

Hi All,

I've got a group of cubes on various contours. I need to rotate the group of cubes on one contour relative to the subsequent group of cubes. Example group 1 is rotated by 0, group 2 ( just above it) rotated by 15, group 3 ( above group 2) rotated 15 degrees relative to group 2.

The distance between the cubes, the number of cubes on each contour must remain as shown in attached gh file.

I understand we can achieve this with series or with shift, however am unable to figure out where to plug it in to achieve the desired result.

Please guide.

Many Thanks

Views: 716

Replies to This Discussion

'Crv: Rail' and 'Crv: Profile' have no internalized data, so the code shows nothing.

Sorry about this.

Reloading files.

Attachments:

Attached files

Attachments:

Is this what you had in mind?  I rotated each layer of four blocks around their common center by a series of incremented angles:

Attachments:

By the way, I added the other set of boxes to these rows being rotated and the result looked pretty good!  Except there are four boxes per row in the middle and five per row above and below that.

A better approach to get the effect you want might be as follows:

  1. start by dividing each contour line by the number you want at the narrowest point; 5 in the example below.
  2. apply incremental rotation as before. (code attached)
  3. fill in the gaps in each row, on any contour lines that have room for one or more in between the "originals" - an exercise left for another time. :)

Attachments:

This is looks quite interesting Joseph.

Still going through all your responses and learning.

Thank you Joseph!

Yes, this is what I was looking to achieve

Filling in the gaps was probably bad advice...  Orienting and aligning fill-in boxes may be too much trouble.

Instead, it occurred to me to make sure the number of boxes on each row is a multiple of a set minimum; '4' in the example below:

Attachments:

Making the number of boxes on each row a multiple of the minimum worked very well in creating an even distribution between the "stacks" (4) that meet at the minimum point.

To make the "continuous strands" stand out more, and make it possible to bake them separately (to use different materials), I added some code at the end to select them out; the "Mins" (in glass and yellow below) and the "others" (in marble and blue below).

P.S.  I think this shape looks better upside down.

P.P.S.  On the 'Round' components, by using 'N (Nearest)' or 'C ('Ceiling)' instead of 'F (Floor)', the 'Min' value can be higher because the bricks are allowed to merge/collide.  Better to change the shape or brick sizes...

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service