Grasshopper

algorithmic modeling for Rhino

Hi

I have a problem :

i just want to collect those angles from curves,

but seems something wrong

the angle shows different base on how i select curves

if i select all of them one time and it shows

if i select one by one and it shows

and also, select different amount of curves shows different angles[same curve]
but the most important thing is all of them are wrong angles,

if i draw some 90 degree curve, the answer is right. 

thank guys

Views: 1036

Attachments:

Replies to This Discussion

Hi Akims,

we'll need the 3dm file with the curves as well. Although I tested with my own polylines. Do note that for the angle to be measured correctly, the first of the two segments needs to be flipped. Otherwise you're measuring the angle between the tangents before and after the kink:

Attachments:

ps. You can also put the expression '-x' in the [A] input parameter of the vector angle component. That too will flip the direction.

Hi David

thank for your solution, it is work on the degree of angle.

but "the different degree of angle " still, here is my 3d file

thank you again

Attachments:

Oh I finally understand! When you window select the curves they will probably be in a different order than if you select them one-by-one. So the order of angles will be different because the order of curves is different.

There's no way for Rhino to know what order you want them in if you select them all at once. So you'll either have to do it one at a time, or add some sorting logic to your gh file so that curves are always ordered the way you need them to be.

Hi David

Sorry about my pool English, BUT still really thank you so much!

ok, i got the point of this problem, i think i just select one-by-one.

thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service