Grasshopper

algorithmic modeling for Rhino

Hi,

im new with GH and have a problem with a Grid. Or better with the point List of the Grid.
I used an rectangular Grid (Image 2). So imagine i want to cut it with a wire in 2D. The way the points are now sorted is like in Image 1.
But i want to switch every second pointpair. As marked in the Image 1.

I hope anybody can help me. I also dont know why the Grid points are shown in the panel this way (pointpairs) and not as usuall in a normal list of points.

Thanks

Views: 312

Attachments:

Replies to This Discussion

The grid component tries to sort the points in a 'column order' for you. If you want them in a single list, just use a 'flatten' component.

About swapping points around, why do you want to swap them? What would that give you?
Thanks for help.
I want to write a G-code from this list, for StyroCut.
So i swap points in order to "cut" the Gridlines.
But the wire has to go first line up, then to right and then down, then right, next up and so on.
The way it is now the wire would cut first line up and then move down diagonal right down and cut the next line up.

greetings

julian

Hey thank u Suryansh
It works perfect now.
I also got it with the flatten and lots of list sortings, but ur way ist much more easier.

Greetz

Julian

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