Grasshopper

algorithmic modeling for Rhino

Hello,

I have scripted (python) a line raster which will give the intersection points. Now I want to add diagonals between the points. In (image:Diagonals) for instance I want lines between points (0,1,4,5), (1,2,5,6), (4,5,9,8) etc. However the problem is that the Horizontal lines and Vertrical lines are parametric and thus can change in amount, so it is possible to create a raster 2x2 but also a raster of for instance 10 x 8.

Additonal it is also possible to create a raster that hasn't points at repeated distances (image:Diagonals1). In this image I drew the lines I wanted to have from the python script, in red. So there may not be lines between the range of point 6,8,15,17. I hope somebody can help me with this problem.

Many thanks in advance 

Views: 219

Attachments:

Replies to This Discussion

Or is it possible to remove lines if they overlap or if they are duplicate. I know it is possible for 3D points to remove duplicates, however when I apply the same code for line-like curves it doesn't work. I know there is a Kangaroo component for duplicates, however I dont want to use Kangaroo and only want to script it. 

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