Grasshopper

algorithmic modeling for Rhino

Selection of points(pattern) based on number, form grid of points.

Hi,

From a grid of 3*3 points, I want to select all points based on a number i provide.
Say for example, i need to select all patterns which are formed by  7 points out of the 9.(see image attached)
I have been so far able to do this by using the closest point.What i am not able to achieve by this method is the linear pattern options.(the boxed ones in the attached image)
Any ideas for how would i achieve this ?

Thanks,
Chai.

Views: 1488

Attachments:

Replies to This Discussion

Is this an ordered grid of 3*3 points? That is, is the list of points stored from left-to-right, top-to-bottom or some such way? If so, you could use the List Item component with a list of indices to select. The list of indices could be controlled in a number of ways, but that is how I'd start.

Hi Damon,
Thanks for the reply,


yes, I've used list item to select a particular point. from which i select the closest points. But because of which, I always tend to get points which are immediately in the neighbourhood of the listed item.
What i would like, is to have configurations as shown in the attached image.


Hyungsoo seems to have found a way, but just for the sake of completeness, I was thinking something stupidly simple:

Clearly this is only practical for small grids, but that's what you have.

Hi.

This way is a bit complex, but you can apply it to another pattern selection.

Attachments:

Hyungsoo,
Thanks a lot!  :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service