4
$\begingroup$

I tried the following code

ContourPlot3D[x^2 + y^2 + z^2 == 1, {x, y, z} \[Element] Cube[2], RegionBoundaryStyle -> None]

And I got only this opaque cube. So I cannot see the contour surface I am trying to plot. How can I fix this?

enter image description here

$\endgroup$
  • $\begingroup$ The Element region is a new feature,maybe a bug. ContourPlot3D[ x^2 + y^2 + z^2 == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, RegionFunction -> Function[{x, y, z, f}, f = True], RegionBoundaryStyle -> Automatic] $\endgroup$ – cvgmt Aug 26 at 11:52
  • $\begingroup$ @cvgmt Thanks. But I am trying to make {x, -1, 1}, {y, -1, 1}, {z, -1, 1} a little bit shorter. $\endgroup$ – ablmf Aug 26 at 12:01
  • 2
    $\begingroup$ Please report this to Support. $\endgroup$ – J. M.'s discontentment Aug 26 at 16:41
3
$\begingroup$

It is a bug! We can compare with the follwing two result.

       GraphicsGrid[{{ContourPlot3D[
    x y z, {x, y, z} ∈ 
     ImplicitRegion[x + y <= 1 , {x, y, z}], 
    RegionBoundaryStyle -> Opacity[0.1], ContourStyle -> Green, 
    Mesh -> False, PlotPoints -> 50],
   ContourPlot3D[
    x y z, {x, y, z} ∈ 
     ImplicitRegion[-1 <= x <= 1 , {x, y, z}], 
    RegionBoundaryStyle -> Opacity[0.1], ContourStyle -> Green, 
    Mesh -> False, PlotPoints -> 50]}}]

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ So, to be clear, you were able to workaround the bug by using GraphicsGrid? Have you found any other methods? $\endgroup$ – CA Trevillian Aug 30 at 3:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.