Grasshopper

algorithmic modeling for Rhino

I have a list of grid points and I want to draw all lines between every two points on the grid using python script. Can anybody help on writing the python script? 

Views: 4407

Replies to This Discussion

Hey Khaterah,

Since your description isn't very precise, I didn't exactly understand what you want to accomplish, but here's what I've come up with:

The first script draws a line between between every second grid point and the next point in row. It also culls the long, diagonal lines that connect the last point of a row with the first point of the next row.
The second script produces lines between every second grid point and all of the other points, except itself, since that would only produce another point.

I hope this helps you out.
Next time, you should probably provide a quick sketch or a reference of what you want to do.

Cheers.

Attachments:

Hi Marc

The second definition is what I was trying to do. The problem with my definition was  that It wasn't appending the lines to a set after looping through points. Thanks for the help. 

Kati

You're welcome.

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