Grasshopper

algorithmic modeling for Rhino

This may be a newbe type questions but:

 

1. I have an arc of a given length.

2. I have the end points of the arc. 

3. I have a line between the two end points.

question:  How can I draw lines perpendicular to the end points of the line line created in 3?

Views: 1520

Replies to This Discussion

Attached is one way to do it, using an xprod you can have the perpendicular vector, and then all you have to do is add an SDL line.
Is that right?
Regards,
LUCAS
Attachments:

Thanks Carlos: that certainly gives me a starting point. I'll play around with it.

I generated my arc using Radians and a radius but your solution should work just fine.

 I had not thought to use vector products, rather I was trying to do this as I would have done in native Rhino using "line perpendicular from a curve" but could find no way to access that from GH.

much appreciated

Al

Using the Radius/Angle component.

 

Chris

Attachments:

Thanks Chris:  more elegant than my attempt.

Al

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service