0

Been having a problem with RegionPlot3D. Let's say I want to plot a cube like this

RegionPlot3D[(Abs[x] <= 10) && (Abs[y] <= 10) && (Abs[z] <= 10),
 {x, -11, 11}, {y, -11, 11}, {z, -11, 11}, PlotStyle -> Directive[Blue], 
Mesh -> False, Axes -> False, Boxed -> False]

This is ok which is super.

But now I change the PlotStyle to a Directive,

RegionPlot3D[(Abs[x] <= 10) && (Abs[y] <= 10) && (Abs[z] <= 10)
 , {x, -11, 11}, {y, -11, 11}, {z, -11, 11}, 
 PlotStyle -> Directive[Blue, Opacity[0.4]], Mesh -> False, 
 Axes -> False, Boxed -> False]

and get Pink death: this is not ok The thing is, I can move the mouse over the box and hold the clicker in order to rotate, and the semi clear box shows you. The instant I stop holding the mouse clicker the pink square returns. I've messed around with adding brackets to the Directive, and checked all combinations of deleting all the other options, and the order they're in, and boiled it down to Directive having an Opacity being the problem.

I've restarted Mathematica multiple times, but nothing changes. Thoughts?

0 Answers0