Grasshopper

algorithmic modeling for Rhino

Trying to make lines exist or not exist based on possible intersection.

I am creating lines that may or may not intersect surfaces.

If the lines don't intersect the surfaces I want them to remain.

If the lines do intersect the surfaces I want them to not exist.

To visualize what I'm trying to do, picture an eave blocking or not blocking a ray of sunlight depending on the angle of the sun.

I might be on the right track with using the surface|line tool, which creates a point value when there is an intersection I want the line to not exist(false), and when there is no intersection it has an empty value when I want the line to exist (true).

I can figure out how to make a point value become false, but I cannot figure out how to make no value become true, or anything for that matter.

Trying to convert this to boolean, am I on the right track of what I want to achieve or is there some other way and I need to back up a few steps?

I also figure that even if the line that creates the intersection has to exist, that is fine I will just have it's preview off and not bake it, I can then create a second identical line that is true/false based on whether there is an intersection or not.

Views: 449

Replies to This Discussion

I attached where I'm at right now, even if this isn't the right path.

I can create true/false values when there is a value.

Here when I make the angle of the line not intersect with the surface, I have no values, no true/false options.

I know my true false method might be a little crude, but I didn't want to mess around with it too much if this isn't even the right direction to take to solve this problem.

Thank you!!

Here is the line intersecting the surface of the awning and the point of intersection being recognized.

And here is the line not intersecting the awning surface creating no point of intersection.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service