Grasshopper

algorithmic modeling for Rhino

what is the easiest way to draw multiple lines normal to a curve through its division points?

Views: 23421

Replies to This Discussion

Create curve frames (not horizontal of vertical planes), decompose the plane, create an Start/Direction/Length Line with the origin of the plane as the start and the Y vector as the direction

thanks a lot , damien.
i made a small change, because i need all the lines point to the same direction of the curve, so i used a perp frame component instead.
the rest is perfect.
still, i thought this would be easier. maybe a component, called line perp, constrained to a plane (which i was missing)

cheers roberto
There are two other ways. I think the easiest one for me is the "Curvature" component. It points the lines to one side so no conditional statements are needed. Also very handy is the centre points it gives, making a line between the curvature points and the original points on your curve and making those lines proprtionally as long as the factor of curvature at the originating point.
great! thank you.
i always need this on closed planar curves.
is there an easy way to make the lines point outwards?
Where relavent make the direction negative. For example for the "SDL line" component right click on input "D" (where the vector comes in) and in expresion write "-(d)" and it will reverse the lines.
and how about evalute the crv at the randomly shattered startingpoints and use the t as input for horizontal planes? or am I mssunderstanding something here?
if you are attempting to create lines oriented the same direction, you will need to include a conditional statement that deals with the inflection point of the curve. (seen in damien's image.) this should test, for your specific curve, where the vectors are changing direction.

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