Rotate plane - while keeping the original Normal

Hello,

I got a simple question but I cant find it. :slight_smile:

There is a plane, I would like to rotate this plane with e.g. 30 degrees, while the normal of the plane remains the same.

Furthermore, it has to be in a generic way, so the ‘original’ plane can take every position.
Below you find a ‘simple’ example of rotationg a XY plane. But is should also work for a plane in 3 dimension (present in attached GH file).

2021-01-20 Rotate plane and keeping same Normal.gh (9.1 KB)
image

image

Any suggestions?

Thanks :slight_smile:

Use Rotate Plane.


2021-01-20 Rotate plane and keeping same Normal_re.gh (11.1 KB)

1 Like

Ahh haha thanks! :slight_smile:

Hi,

Thank you for your answer.

The solution works :).

However, when I implement it in the bigger scipt it does not work for some reason. Could you have a look?

See example below; 2 lines with a different angle.

  1. I would like to rotate both planes (based on the normal of the line) 90 degrees around their own axis.
  2. I would like to get the 'transformation vector, (so the actual ‘difference/vector’ of the rotation).

This because I need this information for the Karamba plugin.

2021-01-20 Rotate plane and keeping same Normal_re_RE.gh (11.8 KB)

Any suggestions?

Thanks again :slight_smile:

I don’t understand what you’re talking about…
What you see in the panel(rotated plane output)are the pieces of information of two plane’s origins and Normal vectors.
If you want to see the difference between the X-direction vectors of the original plane and the rotated plane, then you’ll have to use Deconstruct Plane and compare the angle difference using Angle.


2021-01-20 Rotate plane and keeping same Normal_re_v2.gh (14.5 KB)

2 Likes

Thanks! :slight_smile: