Grasshopper

algorithmic modeling for Rhino

How do I extend the curve only on the side that will intersect, to make a fillet?

Hi everyone!

New one here! I have been researching
on the forum and from what I've seen I think there is not a component to make a fillet from two curves intersect (or independent curves that do not intersect) and I'm working on something that provides me an operation I will make several times.
As you can see in the file, it works well, what I do is extend the line until you intersect and then get the 4 possible options.
But there is a problem I need to fix: Depending on the situation of the curve must be extended on one side or another. And I would need that the resulting curve keep the original end in place. You guys guys have any idea how it could tell the program to detect which way you have to extend the curve? What depending on proximity or something ...?

Thx u all!

Views: 2973

Attachments:

Replies to This Discussion

Hi Rafael, in case the curves are in fact lines (like in your example) you could find the mathematical intersection point, cull the closest end of each curve to that point, create a new polyline and fillet its corner:

Attachments:

Hi Pieter!

Thank you, it works great! I think in my case it will work.
Just for curiosity, if there are curves that aren't lines it doesn't work right?

True: the line-line intersection component will fail of coarse, but you could think of another way to approach that scenario.
 For instance extend both sides, find intersection, -do your logic here-, and finally remove the superfluous extentions.


Thank you very much!

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