f[x_, y_] := Sin@(2 Pi x^3) + Cos@(3 Pi y^2);Show[Plot3D[f[x, y], {x, -1, 1}, {y, -1, 1},PlotRange -> {Automatic, Automatic, {-8, 2}}],Graphics3D[ContourPlot[f[x, y], {x, -1, 1}, {y, -1, 1}][[1]] /. {x : _Real, y : _Real} -> {x, y, -8}]]
效果图:
其中关键的是这个
Graphics3D[ContourPlot[f[x, y], {x, -1, 1}, {y, -1, 1}][[1]] /. {x : _Real, y : _Real} -> {x, y, -8}]
这个很巧妙利用了这个。
