# Intersection of implicitely defined surfaces Is there a general way to visualize the space curve defined by the intersection of 2 implicitely defined surfaces?

I know, this has been discussed here before with the following suggested solutions:

1. Visualize all equations in the same plot - this has the disadvantage that surfaces - even if opaque, distract attention and may obstruct the view on the intersection curves

2. Combine the defining equations into a system of euations and solve it, present the solutions as parametric plots - this doesn't work with complex surfaces where Sage cannot solve the system.

I know, some 3D objects have an intersection() method, but apparently not those generated by implicit_plot3d. But maybe, someone has another solution?

edit retag close merge delete

Sort by » oldest newest most voted There is a recent new method that could be useful:

        sage: P = implicit_plot3d(x**4+y**4+z**2-4,(x,-2,2),(y,-2,2),(z,-2,2),alpha=0.3)
sage: def cut(a,b,c):
....:     return a*a+c*c > 2

more

That example yields in SageCell and in CoCalc

AttributeError: 'sage.plot.plot3d.implicit_surface.ImplicitSurface' object has no attribute 'add_condition'

This will be in sage 8.9 coming soon. Or you need to compile the latest develop version.

In Cocalc, you can use the kernel "SageMath (Developement, python3)".

I have just checked and it works fine in Cocalc with the development kernel.

I confirm your example works in CoCalc with developement kernel. It intersects a surface defined by an equation with a region defined by an inequality. When I replace the inequality with an equation to view the curves on the intersection of both manifolds I see nothing. Can I get that with some other parameters?

Moreover, in Cocalc with the development kernel I get another warning that hurts my document:

show(LatexExpr("f_r(x,y)=\Re(f(x+iy))=")) yields a deprecation warning without a hint how to correct it:

DeprecationWarning: invalid escape sequence \R