Rotate a curve at her center, with different angles

Hi!

I am learning Grasshopper, and i have a basic question: i would like to rotate a curve at his center, putting angle from 1 degré to 180 degré, in order i can variate the angle, how can i please do this in Grasshopper?
In the screeshot i put here, it would be, to rotate the curve from the angle that have the black curve, to, for exemple, the angle that has the blue curve.


:slight_smile:
Thanks so much! :slight_smile:

1 Like

Hi, thanks so much but i don’t know why, i made the same, and it seems my curve don’t rotate at the good plane. I tried the others plane, and each time, it’s the wrong way, as we can see in my new screenshoot here, maybe it is because the curve is not at the center of the drawing, but, as i will have others curve, in order to sweep along a rail, i would like to know how could it be possible to rotate this, even if the curve is not at the center?
Thanks so much :slight_smile:

This is the gh file, i internalised tue curve :slight_smile:
Thanks so much :slight_smile: GHForum13fevr.gh (6.5 KB)

Sorry, i think i made a big mistake, of course, my new curve is on the top plane, first, i have to rotate on the good plane, before to put it on Grasshopper! :slight_smile:

Just out of curiosity, what is “good plane”? It would be nice to use generic terms so others can understand… :wink:

1 Like

You were rotating in the XZ plane when your curve was in the XY plane.


GHForum13fevr_2021Feb13a.gh (6.1 KB)

You can generalize this by deriving each curve’s plane and using it this way:


GHForum13fevr_2021Feb13b.gh (9.1 KB)

1 Like

Hello, sorry, yes, it was the “XY” plane! :slight_smile:
Thanks so much :slight_smile:

Hi! Thanks so much! :slight_smile: