Grasshopper

algorithmic modeling for Rhino

How to get the index of the grids intersected with surface

Hello everyone,

 

As the pic shows, I have a grid and a surface intersected

 

So I was trying to get the index of the intersected grid.

I was trying to script in Python:

 

indice = []


for i in range(0, len(x), 1):    

    arrCSX = rs.CurveSurfaceIntersection(x[i], y)    

    for j in range(0, len(arrCSX), 1):        

         if arrCSX[j][0] == 2 or arrCSX[j][0]== 1:            

                indice.append(i)


indice= a

 

But it couldn't work. Does anyone know how to sort it out?

Thx

Views: 202

Replies to This Discussion

A wild guess, since I cannot read the Python code...

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