Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

plot the the intersection of two surfaces in 3d, use of a special colour for the intersection

Is it possible to colour the intersection of two surfaces in 3d with a special colour in the following plot?

x, y, z = var('x,y,z')
f1=y-x^3
f2=z-x^5
surface1 = implicit_plot3d(f1,(x,-5,5),(y,-3,3), (z,-5,5), color='blue',opacity=.7)
surface2 = implicit_plot3d(f2,(x,-5,5),(y,-3,3), (z,-5,5), color='red',opacity=.7)
show(surface1+surface2)

image:alt text

plot the the intersection of two surfaces in 3d, use of a special colour for the intersection

Is it possible to colour the intersection of two surfaces in 3d with a special colour in the following plot?

x, y, z = var('x,y,z')
f1=y-x^3
f2=z-x^5
surface1 = implicit_plot3d(f1,(x,-5,5),(y,-3,3), (z,-5,5), color='blue',opacity=.7)
surface2 = implicit_plot3d(f2,(x,-5,5),(y,-3,3), (z,-5,5), color='red',opacity=.7)
show(surface1+surface2)
show(surface1+surface2

image:alt text

plot the the intersection of two surfaces in 3d, use of a special colour for the intersection

Is it possible to colour the intersection of two surfaces in 3d with a special colour in the following plot?

x, y, z = var('x,y,z')
f1=y-x^3
f2=z-x^5
surface1 = implicit_plot3d(f1,(x,-5,5),(y,-3,3), (z,-5,5), color='blue',opacity=.7)
surface2 = implicit_plot3d(f2,(x,-5,5),(y,-3,3), (z,-5,5), color='red',opacity=.7)
show(surface1+surface2
show(surface1+surface2)

plot the the intersection of two surfaces in 3d, use of a special colour for the intersection

Is it possible to colour the intersection of two surfaces in 3d with a special colour in the following plot?

x, y, z = var('x,y,z')
f1=y-x^3
f2=z-x^5
surface1 = implicit_plot3d(f1,(x,-5,5),(y,-3,3), (z,-5,5), color='blue',opacity=.7)
color='blue',opacity=1)
surface2 = implicit_plot3d(f2,(x,-5,5),(y,-3,3), (z,-5,5), color='red',opacity=.7)
color='red',opacity=.3)
show(surface1+surface2)