Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

I use wolfram mathematica. There is a function of two variables which defines the surface z = f(x,y), the second surface is defined as z = const. How to find the line of intersection of these two surfaces and its projection on XY plane?

share|improve this question

marked as duplicate by Szabolcs, Sjoerd C. de Vries, Yves Klett, Michael E2, bobthechemist Jun 25 at 18:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Can you share your code so we have something to work with? –  bobthechemist Jun 25 at 17:34
    
Have you tried googling for "mathematica intersection of surfaces"‌​? Have you tried the method in the first google hit? If yes, what kinds of difficulties did you encounter, or in what way was the solution not sufficient? –  Szabolcs Jun 25 at 17:34
1  
In general there is nothing to say, here is an example that demonstrates how difficult it can be Can mathematica solve this equation? –  Artes Jun 25 at 17:52

1 Answer 1

Let f[x_,y_] := Sin[x + y^2].

To plot the intersection of f[x,y] == z with z == 0.5, use

Plot3D[f[x, y], {x, -3, 3}, {y, -2, 2}, MeshFunctions -> Function[{x, y, z}, z], Mesh -> {{0.5}}]

To plot this curve in the plane,

ContourPlot[f[x, y] == 0.5, {x, -3, 3}, {y, -2, 2}]

Further reading:

share|improve this answer
    
Thanks for quick reply! I can draw 3d graph and see the line of intersection, but how get(extract) the projection on the xy plane in the numerical data (as a function f(x) or FunctionInterpolate(data))? My function f(x, y) is not analytical, its value is calculated numerically. –  rdm Jun 25 at 17:48
    
@rdm I do not understand the question completely. Please edit the question and post a sample input (f function to work with) and give an example of what sort of output you need (or what you want to do with an output). If people would only post a clear enough question the first time, it would save a lot of time for everyone. –  Szabolcs Jun 25 at 18:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.