Grasshopper

algorithmic modeling for Rhino

Counting squares where the curves pass through...I'm stuck

Hi, 

Trying to count the squares on the grid where assigned curves are passing through. Thought of counting the segments that are cut at start and end points where they intersect the underlying grid of squares.

The lowest image displays the excel version of what I am trying to achieve.

Thank you in advance,

Lale 

Views: 352

Attachments:

Replies to This Discussion

So if the same curve intersects a square more than once, that counts extra?

I merely ask, because if it's only a yes/no you're after, it could be done very easily using [Collision One|Many]

Attachments:

Here's an approach using intersections.

Attachments:

This definitely does the trick! Thank you! I just need to count half of this result since right now, it is counting both entrance and exits to the squares and I need either entry or exit...Thanks so much for the help David!

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