Grasshopper

algorithmic modeling for Rhino

Hello, I'm new in Grasshopper, I've searched around but I couldn't find a solution, hope someone can help me.

I want to get in Grasshopper the line perpendicular to a plane that contains a specific point outside the surface, i.e. the distance between the plane and this point. Is there a way to get that? If possible I want to get a line rather than a "numeric distance", so I could later use it as a vector.

Thank you.

Views: 5274

Replies to This Discussion

Hi Andrés,

Is this what you want?

Attachments:

Not exactly, that is great for calculating the perpendicular line to a surface, but now I need to finde the exact point on the surface so that this line perpendicular to the surface contains a especific point I have defined in Rhino and is not on the surface. My surface is actually a plane (flat), so the normal vectors in each point of it all have the same direction, but I need to find the one that goes through the point outside the surface.

Could you please attach your files, and label the exact point you are talking about?

I want to get the line that goes from the point set in "SET Pt a" and is perpendicular to the plane created in "Pl 3Pt"

What I'm trying to do could be easily done directly in Rhino, but I'm trying to develop a definition that could be applied to any given pair of solids, that's why I want to do this in Grasshopper.

Attachments:

As far as I can tell that's exactly what Djordje's file does. It finds the closest point on a surface (flat or curved, doesn't matter) which* gives you a surface normal vector that intersects the point.

If you're interested in infinite planes instead of finite flat surfaces, then replace Surface CP with Plane CP.

--

David Rutten

david@mcneel.com

* provided the surface has no kinks in it

Hello again, I've finally found a way to do it, I think it was easier than it looked like. I simply created a surface in the plane I had and then "surface closest point" worked perfectly. I attach the file just in case you want to check it.

Thank you djordje and David for your attention! Greetings and Happy New Year!

Attachments:

Glad you found solution.
Happy New Year too!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service