# HexagonalPrism (new\_version)

**URL:** <https://openmc.discourse.group/t/hexagonalprism-new-version/3667>\
**Category:** User Support\
**Created:** [November 22, 2023, 8:51am UTC](https://openmc.discourse.group/t/hexagonalprism-new-version/3667 "2023-11-22T08:51:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![12amiraa2](https://avatars.discourse-cdn.com/v4/letter/1/2bfe46/32.png) [@12amiraa2](https://openmc.discourse.group/u/12amiraa2)\
**Post date:** [November 22, 2023, 8:51am UTC](https://openmc.discourse.group/t/hexagonalprism-new-version/3667/1 "2023-11-22T08:51:22Z")

</div>

Hello eneryone;  
I’m a beginner to use the code and have trouble using the function of the hexagonal prism due to the new update and i need some help to complete my project and that what i get like an error

 ![Capture d’écran 2023-11-22 à 00.45.32](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/6/6cbdf2c0675a99fac3a0962e21db60918cf7dda1.png)

---

<div class="post-metadata">

**Author:** ![ligross](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/ligross/32/1653_2.png) [@ligross](https://openmc.discourse.group/u/ligross)\
**Post date:** [March 13, 2024, 7:59pm UTC](https://openmc.discourse.group/t/hexagonalprism-new-version/3667/2 "2024-03-13T19:59:18Z")

</div>

I can’t say for sure because I can’t see all of your code, but I’m guessing it’s something like

```auto
outer_surface = openmc.model.HexagonalPrism( ... ) 

```

Just drop the `-` in front of `outer_surface`. You don’t use `+` and `-` with it (which the code is telling you with `TypeError: unsupported operand type(s) for &: 'HexagonalPrism' and 'Halfspace'`. I believe the default is inside. You could use `~` with it to mean the outside, if I understand correctly this error message

---

<div class="post-metadata">

**Author:** ![ligross](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/ligross/32/1653_2.png) [@ligross](https://openmc.discourse.group/u/ligross)\
**Post date:** [March 13, 2024, 8:08pm UTC](https://openmc.discourse.group/t/hexagonalprism-new-version/3667/3 "2024-03-13T20:08:23Z")

</div>

Though it looks like [as of v0.14.0,](https://github.com/openmc-dev/openmc/pull/2739) you _need_ to use it the way that you originally defined. You could also solve your problem by updating to the most recent version.
