The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Intersection of two surfaces
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
TC Christensen

Posts: 11
Registered: 4/8/10
Intersection of two surfaces
Posted: Dec 6, 2012 4:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello Matlab community :),

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,

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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.