FlyingFi / Waterfront-analysis-0.3

0 stars 0 forks source link

Speed up Grasshopper file #1

Open philipbelesky opened 3 years ago

philipbelesky commented 3 years ago

After looking through the file, the definition's slowness is caused by feeding the very large amount of points from a rectangular grid (over 160,000) into the "point in curve" component. One way to speed this up would be to reduced the size or density of that grid.

Another way would be to cut down the number of points to check in the grid using a quick method. The Point in Curve can then search a much smaller amount of points. In the attached file I've added a new set of components in white. They do a closest-points comparison to narrow down all of the grid points to a smaller selection. That small selection is then tested using "point in curve". Hopefully it is much faster with your site.

Waterfront.Analysis.0.3_FC.gh.zip

FlyingFi commented 3 years ago

Hey Philp, Thanks for your suggestion and GH definition, it helps.

I've also updated my GH definition based on your file while adding 'cull duplicates'. The file is much faster now.

Screen Shot 2021-09-26 at 8 09 49 PM

Thanks again!