I was wondering whether there might be a general method to obtain the intersection of two surfaces (represented by triangular meshes). Specifically, a simplified problem of what I'm actually trying to compute could be represented by the following: _____ [X,Y,Z] = meshgrid(linspace(-1,1,50)); V = tanh(X+i*Y)+(1+i)*Z; S1 = isosurface(X,Y,Z,real(V),0) hold on S2 = isosurface(X,Y,Z,imag(V),0) hold off _____
Now, the two surfaces intersect just along the curve where V(X,Y,Z) = 0. My question concerns whether there might be some way to plot this curve provided the information given in the above code-snippit? I.e. how can I find the intersection of the two surfaces S1 and S2?
I'd be very interested in hearing your ideas, as I'm quite stuck on this one! Best regards, Thomas
PS. As you might have noticed, what I'm really trying to compute is the zeros of a complex valued function V(X,Y,Z) of three variables (actually, in my case, it's only two variables, of which one is a complex variable) - but I haven't found a clever way to do it.