Grasshopper

algorithmic modeling for Rhino

Horizontal Frames gives (very) unexpected results!?

Hello everyone.

Still in the fairly early stages of learning grasshopper, after mastering vvvv, and here is something I can't get my head around:

I use contours to get some lines between 2 (parallel) curves and then want to get a grid of frames on those lines.

When the lines are horizontal, everything works as expected (see first image). But when I make the contours vertical, there is a weird and seemingly random pattern of the frames (see second image). Also the number makes no sense at all: There are 40 curves and a count of 11, yet it only creates 117 frames. 

Anybody have an Explanation and/or fix for this?

Alternatively is there a Transpose Matrix equivalent for Lists with Sublists, ie. I have a list of 10 lists with 100 items, and want to instead have 100 lists with 10 items. I need to reorder the frames, so that it doesn't go index 1, index 2, etc. in the horizontal direction but in the vertical.

Thank you!

Views: 837

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Have you tried to flatten the contours curves input? So that you define the frame count for each curve. Then you should have a tree with 40 branches each branch having 11 frames from beginning of the curve to the end, if you then use flip matrix, you should get the opposite. 

Rasmus 

Hey Rasmus,

yes I have tried that. It still doesnt work at all. In the thing I am working on there are either 11 lines with 168 frames along it each horizontally. Now I want to flip the direction so there are 168 contours with 11 frames each. If I change the direction of contours, they look fine, 168 lines. Now change the count in horizontal frames to 11 and I end up with: 20 frames. There are 168 list items, but all with 0 values inside, except the second one which has 9 values and the third one which has 11 values. Makes no sense at all!

I will attach the grasshopper file, you can have a little play yourself.

Attachments:

Yeah its weird.

It looks as though it's trying to give you a coded message of some sort :)

As a work around until David can have a look at this I would suggest [PFrames] for the vertical contours

Also you could divide a [Range] and then use the single [horizontal Frames] component on <Reparameterize> Curves 

Hey thanks Danny, that has "solved" it for now. At least I can continue working on it as I have the result I wanted. Strange though that the other thing didn't work as expected?!

I am not sure I understand exactly what reparameterize does, but I am sure it will soon make sense. For now it works.

Thanks!

The component is hosed (David's terminology not mine)

In the mean time I will report it as a bug.

Have a read of this thread to find out more on <Reparameterize>

Thanks for doing that! Still new in the forums and grasshopper, so not sure what are bugs yet, dont want to seem like a total noob. ;)

Thanks for the link to the thread, i'll have a read now. 

Marking this as solved.

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