Grasshopper

algorithmic modeling for Rhino

Hello,

I want to set a perpendicular line at the start Pt of each Curve & towards the outside, but the X axis of the Perpendicular Frames is sometimes towards the centre.

Any idea how I can correct that ?

 

P.S. When I set Horizontal frames they all have the correct XY orientation 

Views: 997

Replies to This Discussion

Hello !

If you're still looking for an answer to this, there is a mathematical solution.

You first need to create vectors from each point on your circle to the center of the circle.

Then use the dot product between these vectors and your X vectors.

If the result is positive, your X vector points inside the circle, so you need to reverse it.

I hope this helps.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service