# Mirroring Plane Normal to World Z doesn't affect the Plane's orientation

**URL:** <https://discourse.mcneel.com/t/mirroring-plane-normal-to-world-z-doesnt-affect-the-planes-orientation/143213>\
**Category:** Grasshopper\
**Tags:** windows, bug, mirror, plane\
**Created:** [May 30, 2022, 2:12pm UTC](https://discourse.mcneel.com/t/mirroring-plane-normal-to-world-z-doesnt-affect-the-planes-orientation/143213 "2022-05-30T14:12:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.andraos](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/s.andraos/32/544256_2.png) [@s.andraos](https://discourse.mcneel.com/u/s.andraos)\
**Post date:** [May 30, 2022, 2:12pm UTC](https://discourse.mcneel.com/t/mirroring-plane-normal-to-world-z-doesnt-affect-the-planes-orientation/143213/1 "2022-05-30T14:12:08Z")

</div>

If I take any Plane in Grasshopper and mirror it through the World XY Plane, the whole frame gets flipped as expected:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/1/c/21c1ae186252b35219af79452e0890a6173945f5.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/8/d/48d1bc3c46b548067324faafd19e47f5e3351df3.png)

Except when the input plane is also the World XY Plane or any other plane with its Z facing {0,0,1}:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/0/d/20d24414d0f090aed45db4c049c452cb21c45790.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/7/e/67e1944737473cae9c483346583559cdbf53fe7f.png)

or

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/7/7/2770978203dcedaaafb59aa8993a6f2892c9a75e.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/d/8/fd8ee0b0211155391a397c2d35a34071f26c17a9.png)

I believe this is a bug but I’m not 100% sure of the underlying maths/code so maybe this is “normal”. Any thoughts?

---

<div class="post-metadata">

**Author:** ![DanielPiker](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danielpiker/32/666337_2.png) [@DanielPiker](https://discourse.mcneel.com/u/DanielPiker)\
**Post date:** [May 30, 2022, 2:33pm UTC](https://discourse.mcneel.com/t/mirroring-plane-normal-to-world-z-doesnt-affect-the-planes-orientation/143213/2 "2022-05-30T14:33:34Z")

</div>

Hi @s.andraos

This isn’t a bug, but just how planes are defined in Rhino. I agree it can be a bit counterintuitive at first, particularly when it comes to mirroring, but once you know what behaviour to expect it does make sense.

Planes always maintain their handedness - Z is determined by X and Z, not something you can set separately.

> [@How to reverse a planes Z Axis with RhinoCommon](https://discourse.mcneel.com/t/how-to-reverse-a-planes-z-axis-with-rhinocommon/133963/6):
>
> To confuse things, some programs do this differently. Rhino would be in the bottom right of this chart (Right-handed, Z-up). [source](https://twitter.com/FreyaHolmer/status/1325556229410861056)

Note that in your first example, if you look at the Z axis of your vertical plane, it is not getting mirrored in the World XY plane, but gets reversed:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/8/5/985b065d4089683cb0a067d6f8df65c294a9d9a7.png)

---

<div class="post-metadata">

**Author:** ![s.andraos](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/s.andraos/32/544256_2.png) [@s.andraos](https://discourse.mcneel.com/u/s.andraos)\
**Post date:** [May 30, 2022, 3:19pm UTC](https://discourse.mcneel.com/t/mirroring-plane-normal-to-world-z-doesnt-affect-the-planes-orientation/143213/3 "2022-05-30T15:19:02Z")

</div>

Thanks for the very prompt reply @DanielPiker .

I was expecting the origin and normal to be mirrored but that leaves the other two axes potentially undefined.

I’m trying to get my head around the actual implementation. Would it be reasonable to say:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/9/0/6903fcaef0f0d0f3f097c53880a11fe3d489edd1.png)  
Given the Plane (coloured) to be mirrored in some reference (white) - the origin of the Plane and the X and Y vectors/“ends of its X and Y axes”, for want of a better term, are reflected in the white axes. From which the X and Y axes of the new Plane are “reconstituted”.  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/3/d/e3d2ec0d12203ded5dee741bb21501c2eddc94d7.png)  
And because Z is just a product of X and Y axes of the new Plane (and handedness is always maintained), it happens to have the same direction as its predecessor?

Thanks again,

Seb
