# Subtracting a 3D Sphere from a 3D Cube tutorials

**URL:** https://discourse.processing.org/t/subtracting-a-3d-sphere-from-a-3d-cube-tutorials/32509
**Category:** Coding Questions
**Created:** [September 29, 2021, 3:49pm UTC](https://discourse.processing.org/t/subtracting-a-3d-sphere-from-a-3d-cube-tutorials/32509 "2021-09-29T15:49:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![garyion](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@garyion](https://discourse.processing.org/u/garyion)
#### Post date: [September 29, 2021, 3:49pm UTC](https://discourse.processing.org/t/subtracting-a-3d-sphere-from-a-3d-cube-tutorials/32509/1 "2021-09-29T15:49:29Z")

</div>

Hi,  
I am looking for a tutorial to subtract a 3D sphere shape from 3D cube

similar to

[https://www.gograph.com/clipart/subtraction-of-cube-and-sphere-gg66311482.html](https://www.gograph.com/clipart/subtraction-of-cube-and-sphere-gg66311482.html)

> **[Stock Photo - Abstract digital still life installation with yellow white...](https://www.alamy.com/abstract-digital-still-life-installation-with-yellow-white-geometric-shapes-over-white-soft-shaded-background-subtract-boolean-operation-illustration-image263714844.html)**
>
> Download this stock image: Abstract digital still life installation with yellow white geometric shapes over white soft shaded background. Subtract Boolean operation illustration - W916Y8 from Alamy's library of millions of high resolution stock...

thanks

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [September 30, 2021, 10:22pm UTC](https://discourse.processing.org/t/subtracting-a-3d-sphere-from-a-3d-cube-tutorials/32509/2 "2021-09-30T22:22:01Z")

</div>

please see here [Math behind logical operators on 3D boxes / cuboids - #6 by Chrisir](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318/6)

---

<div class="post-metadata">

### Author: ![garyion](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@garyion](https://discourse.processing.org/u/garyion)
#### Post date: [October 1, 2021, 6:03am UTC](https://discourse.processing.org/t/subtracting-a-3d-sphere-from-a-3d-cube-tutorials/32509/3 "2021-10-01T06:03:49Z")

</div>

thank you @Chrisir , I will have a look at this
