Qurak

Highlight the intersection of two surfaces

Example 2 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

Step 1
h = x ^ 2 + y ^ 2 + z ^ 2 - 2;
g = x ^ 3 + y ^ 2 - z ^ 2;

No output - this step sets something up for the next one.

Step 2
ContourPlot3D[{h == 0, g == 0}, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, MeshFunctions -> {Function[{x, y, z, f}, h - g]}, MeshStyle -> {{Thick, Blue}}, Mesh -> {{0}}, ContourStyle -> Directive[Orange, Opacity[0.5], Specularity[White, 30]]]
Output
-Graphics3D-

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client