Grasshopper

algorithmic modeling for Rhino

Hi, 

I am trying to intersect lines with surfaces. Pretty simple (or so I thought), but I am getting null values. After the intersection, I am trying to trim extending segment, but can only trim right now inside a contained curve. Any suggestions would be appreciated. 

Gracias. 

Views: 664

Attachments:

Replies to This Discussion

Hello Erik

try the following

first you flatten the line so that each surface is checked for intersection with all the lines (longest list). then clean tree removes zero's and empty branches (the ones that are outputted when there isn't any intersection) to have you intersection points.

cheers

alex

Hi Alex, 

Once again coming through! Works great! I didn't realize I had to flatten the lines. 

Do you have any suggestions of a link/resource to look at to trim the lines after the intersection, I after discovered one yet. 

Thank you again for all of your insight. 

Erik

Instead of trimming, make new 2-pt lines from the original point to the intersection point.

yes

you can use shatter component. it asks for curves to be trimmed and the t parameter of each curve to trim at. you get access to the t parameter with curve closest point .component.

or like Damon suggests , which is way more efficient than my suggestion.

Ahhh perfect! Thank you both for your suggestions. Alex, thank you for imparting the trimming technique as I have been searching for that solution. Damon, I ended up using a similar solution to your suggestion as I could not figure out the trimming method primarily. 

Thank you both again. 

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