# Boolean Bug

**URL:** <https://discourse.mcneel.com/t/boolean-bug/170757>\
**Category:** Grasshopper\
**Tags:** windows, rhino8\
**Created:** [December 5, 2023, 11:25am UTC](https://discourse.mcneel.com/t/boolean-bug/170757 "2023-12-05T11:25:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![phillip](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/phillip/32/664214_2.png) [@phillip](https://discourse.mcneel.com/u/phillip)\
**Post date:** [December 5, 2023, 11:25am UTC](https://discourse.mcneel.com/t/boolean-bug/170757/1 "2023-12-05T11:25:31Z")

</div>

There seems to be a bug in how booleans work in Grasshopper for Rhino 8. Sometimes they only work in a specific case or if grafted. Sometimes they do the wrong thing. I think it might be about the revolution surface. Please see the file attached. Thanks!  
[231205\_booleanBug\_pcr.gh](https://discourse.mcneel.com/uploads/short-url/xOOGfnCWOY5fx8qXyrzkolA87b4.gh) (16.5 KB)

 ![Canvas at 12;19;47](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/b/0/bb05c669d2f005f95172192eb288111fa9724ffd.png)

---

<div class="post-metadata">

**Author:** ![inno](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/inno/32/544036_2.png) [@inno](https://discourse.mcneel.com/u/inno)\
**Post date:** [December 5, 2023, 12:20pm UTC](https://discourse.mcneel.com/t/boolean-bug/170757/2 "2023-12-05T12:20:53Z")

</div>

I think a part of the issue depends on the fact that the Brep you get by revolution is flipped inwards:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/0/7/b0789ac4e8fc761b3f937b5fe5150ad0b0e38dd0.png)

if you deconstruct + Join it, things work the right way:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/6/e/e6ecbfe2ac3c2c5236a4822b1ecdfc74a86e7e83.png)

[231205\_booleanBug\_pcr\_Re.gh](https://discourse.mcneel.com/uploads/short-url/mPuDu0Eu48a3nPd5yN4dAL65bRG.gh) (21.9 KB)

---

<div class="post-metadata">

**Author:** ![phillip](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/phillip/32/664214_2.png) [@phillip](https://discourse.mcneel.com/u/phillip)\
**Post date:** [December 5, 2023, 1:24pm UTC](https://discourse.mcneel.com/t/boolean-bug/170757/3 "2023-12-05T13:24:42Z")

</div>

Well, yes, you are right. The booleans work with the output from the Revolution though. Technically it should not be flipped as it is a closed Brep. Since I am doing a full revolution it shall be closed. And it is in Rhino, if you bake it. Maybe not a real bug, but just a little weird.  
Turns out all extruded surfaces from the standard closed curves (meaning the closed curves themselves) are flipped in the first place. Guess it does not matter until you revolve them 2\*pi. Cheers and have a nice day!  
 ![Screenshot 2023-12-05 135753](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/c/b/3cb3a771d1dcaae6b961b244013889af940752c0.png)

 ![Screenshot 2023-12-05 141531](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/1/c/b1ce65becff8b36334119e042d2073d3e200be95.png)

---

<div class="post-metadata">

**Author:** ![inno](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/inno/32/544036_2.png) [@inno](https://discourse.mcneel.com/u/inno)\
**Post date:** [December 5, 2023, 1:37pm UTC](https://discourse.mcneel.com/t/boolean-bug/170757/4 "2023-12-05T13:37:51Z")

</div>

> [@phillip](#):
>
> Turns out all extruded surfaces from the standard closed curves (meaning the closed curves themselves) are flipped in the first place.

well, this also depends on many things like the direction of the revolve axis and the direction of the revolve itself  
for instance if you flip the rotation axis (in such a way the line flows along -Z) then you get the the closed solid with the right Normals:

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

[231205\_booleanBug\_pcr\_Re\_Re.gh](https://discourse.mcneel.com/uploads/short-url/bZlRnfbVUaE1Hb6CvbVFCpOPFrN.gh) (23.0 KB)

same thing in Rhino, you can visualize it by activating the Backface color in the Display options (in my case backface color is red)

---

<div class="post-metadata">

**Author:** ![phillip](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/phillip/32/664214_2.png) [@phillip](https://discourse.mcneel.com/u/phillip)\
**Post date:** [December 5, 2023, 4:49pm UTC](https://discourse.mcneel.com/t/boolean-bug/170757/5 "2023-12-05T16:49:25Z")

</div>

Yes, you are right. Nevertheless I think this is wrong.
