3D cube with sphere cutout, inside



using Makie

scene = Scene()
r = range(-1, stop = 1, length = 100)
mat = [(x.^2 + y.^2 + z.^2) for x = r, y = r, z = r]
mat2 = mat .* (mat .> 1.4)
#plot the space inside
volume(mat2, algorithm = :absorptionrgba)