Hello Wolfram Scientists!
Any idea how to do a Region Function “boundary” sphere instead of the default cube shape in Mathematica? I would like to encapsulate a ContourPlot3D smoothly inside of a sphere?
Thank you so much!
Hello Wolfram Scientists!
Any idea how to do a Region Function “boundary” sphere instead of the default cube shape in Mathematica? I would like to encapsulate a ContourPlot3D smoothly inside of a sphere?
Thank you so much!
Hi Ricardo
One solution is that you can hide the box around your figure and add a sphere around it using Show. This allows lots of customizations for the surrounding sphere.
Show[Graphics3D[{Opacity[0.3], Sphere[{0, 0, 0}, 4]}],
ContourPlot3D[x^3 + y^2 - z^2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}], Axes -> False, Boxed -> False]
Thank you, Ahmed!
The code works well but when I pass on to my code, I get this error:
Show::gtype: Times is not a type of graphics.
Do you know why?
Would it be possible to do this as a Region Function of a Sphere? Does this method cut the mesh smoothly?
Thank you!
I cannot see your code and don’t know how you integrated this one into yours but the error looks like you missed a comma.
I am sorry Ricardo, I don’t understand what do you mean with “cut the mesh”. Can you show me an example?
Hi Ahmed! Thank you for your reply…I am attempting to use RegionFunction or any other command to trim an implicit surface drawn with ContourPlot3D to only show the portion inside of a sphere (instead of the bounding box from PlotRange).
Ball is not working for me, unfortunately.
Thank you!