# Cut a slice at z in 3D plot in Mathematica

I am trying to cut a slice on z axis in a ContourPlot3d but I am unable to see any change in the slice plane. I am using the following code:

ySlice2 = ContourPlot3D[z == -1.5*10^-13, {x, 0, g}, {y, -2, 2}, {z,-1*10^-12, 0},ContourStyle -> Opacity[0.5, Lighter@Red], Mesh -> None, ImageSize -> Large, AspectRatio -> Full]


I need cut at different values of z axis and then later add this to other Plot3D using show. Please help.

Regards, Raghu

• – Roman Jun 3 '19 at 11:22
• Can you please give me the code snippet to use ClipPlanes to cut z-axis? I see that ClipPlanes is used with Graphics3D but how can I fix the x,y and z ranges and then cut a plane at z = constant. – Raghuram Jun 4 '19 at 5:09

Manipulate[