# 3d contour - calculation not plot

**URL:** <https://discourse.julialang.org/t/3d-contour-calculation-not-plot/68549>\
**Category:** General Usage\
**Created:** [September 21, 2021, 8:31pm UTC](https://discourse.julialang.org/t/3d-contour-calculation-not-plot/68549 "2021-09-21T20:31:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [September 21, 2021, 8:31pm UTC](https://discourse.julialang.org/t/3d-contour-calculation-not-plot/68549/1 "2021-09-21T20:31:43Z")

</div>

I have code that convolves a 2d cluster of points, then finds a contour of the convolution, which it takes to be the cluster boundary.

I’d like to extend it to 3 dimensions. Naively, I’m thinking I can just find the contour for each slice (Contour.jl), my challenge would then be to figure out which ones are effectively connected in 3 dimensions.

But has that been implemented already somewhere? Does it have a different name?

---

<div class="post-metadata">

**Author:** ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)\
**Post date:** [September 21, 2021, 8:36pm UTC](https://discourse.julialang.org/t/3d-contour-calculation-not-plot/68549/2 "2021-09-21T20:36:40Z")

</div>

This might be helpful [https://github.com/bachrathyd/MDBM.jl](https://github.com/bachrathyd/MDBM.jl)

---

<div class="post-metadata">

**Author:** ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Post date:** [September 23, 2021, 6:40pm UTC](https://discourse.julialang.org/t/3d-contour-calculation-not-plot/68549/3 "2021-09-23T18:40:34Z")

</div>

That does look interesting. Can you provide some insight on how to make it work with a multidimensional array, instead of a function, and how to set the threshold for a specific contour level?
