Grasshopper

algorithmic modeling for Rhino

Hi guys,

I am having problems orienting a surface using a point. Basically what I want to do is by moving the point, the surface moves along with the point, effectively creating a right angle between the line and the surface (orienting based on the normal of the surface).

Views: 2002

Replies to This Discussion

Some logic to try might be:

1- evaluate surface, (this gives center point and normal of surface)

2- create a vector from an attractor point to the center of the surface, (or multiple surfaces)

3-create a plane normal, (creates a plane perpendicular to a vector), from the vector in step 2 and the center point from step 1

4-orient the surface from the existing normal to the plane normal in step 3.

a key concept in this approach involves reparameterizing the surface when evaluating.  Give it a try and see how far you get.

thanks guys, will give it a try and see how it goes.

so i tried them out, it was as simple as drawing a line from the centre of the surface to the point, using pframes on the line then orient, i guess i was suffering from a slight mind block yesterday. thanks for the help again!

glad you were able to work it out.  this was a quick sketch of the logic I had mentioned.  I like your approach though, very direct!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service