Grasshopper

algorithmic modeling for Rhino

Hi,
I need to improve the efficiency of a script that I am developing. 

I am calculating the intersection of a number of curves with different sub-surfaces generated from a bigger surface. I want to obtain a list with the amount of curves that intersect at each of the sub-surfaces. The way I have done the script i need to check one subsurface at a time and then add up all the results in a list. I therefore need to copy all the components many times, which is very time consuming. I am sure there must be a much more efficient way to solve this. Any ideas?

I attach the rhino model and the script.

Thanks in advance!

Alejandro

Views: 305

Attachments:

Replies to This Discussion

Hello Alejandro

you ca do the following

you can input in s the surfaces output from subsurface component. you have to grafted since the rays are flattened in a list, so that each surface is checked with every ray. this will output a data tree with 132 branches (as many as the surfaces) with each branch having the points for each surface.

if you want your data tree to be according to the rays then you flatten the surfaces and you graft the rays.

my panel is empty because i dont have the weather file so i dont have any rays as input.

cheers

alex

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