I want to plot two surfaces in one figure, for example
using CairoMakie
x = range(-pi, pi, 128)
y = x'
z1 = broadcast((x,y)->cos(x)+cos(y), x,y)
z2 = -1.0.*z1
f,_,_ = surface(x,x,z1; axis=(type=Axis3,),colormap=:jet)
surface!(x,x,z2,colormap=:jet)
f
the result is
the first surface is covered by the second surface like a 2D plot, but the two surfaces should have intersection as follow (by mathematica)
how to realized above figure by Makie? Thanks in advance!