# Math behind logical operators on 3D boxes / cuboids

**URL:** <https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318>\
**Category:** Project Guidance\
**Created:** [September 19, 2021, 5:15pm UTC](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318 "2021-09-19T17:15:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [September 22, 2021, 12:56am UTC](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318/5 "2021-09-22T00:56:23Z")

</div>

@Lukasz – there is a post by @villares on making the JCSG Constructive Solid Geometry library work with Processing in both Java and Python modes.

> [@CSG (Constructive Solid Geometry)](https://discourse.processing.org/t/csg-constructive-solid-geometry/12693):
>
> For years I have looked for CSG in Processing… then I found a nice Java CSG candidate library and George Profenza in minutes made it work with Processing: I’m very happy smiley And it even works with my beloved Processing Python Mode: [https://github.com/villares/py.processing-play/tree/master/3D/demo\_JCSG\_py](https://github.com/villares/py.processing-play/tree/master/3D/demo_JCSG_py) Now the next step, I guess, would be someone skilled in the ancient Processing Library template & repository maintenance arts to wrap it and make it…

You should also look at the discussion on his Stackoverflow post with the original question and an amazing detailed answer by @George. @Chrisir also made a demo – I’m not sure, but he may also use JCSG in some of his movies?

> <https://stackoverflow.com/questions/56999816/is-it-possible-to-use-jcsg-library-with-processing>

---

_[View the full topic](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318)._
