Grasshopper

algorithmic modeling for Rhino

Hello people,

I am trying to find out which of my rectangle edges intersect with the curve in the curve's highest tangent. What is the best way to do it. And it is not always the edge with index 2 always. Here is the 3dm and gh filesThank you in advance.

Views: 623

Attachments:

Replies to This Discussion

Hello Dim,

Here's how I would do it.

I hope this is what you're looking for.

Hi Dim Gimi,

Here is another, slightly more elaborate solution to finding the edge, angle and corresponding points on each curve.

Hope that helps. Best, Armin.

Attachments:

Ok, I just noticed that you are looking for the smallest angle actually, but thats easy enough to fix. Because there is 2 sides you can measure the angle between the tangents, each angle is actually the angle we measure (X) and 180-X.

The highest angle of intersection would actually be 90 degrees and the lowest would be 0.

So I think we would even have to consider both and then find the lowest, because it makes a difference in which direction the tangent is pointing.

So here is the updated version to get the SMALLEST angle and check both directions (x and 180-x) just in case.

Attachments:

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