parametric plotting over regions bounded by two curves in the plane

Hi all,

Maple's parametric plot3d command allows the limits of the second of the two parameters to be functions of the first. For example, to plot the intersection of two circular cylinders enter

c1 := plot3d([cos(t), y, sin(t)], t = 0 .. 2*Pi, y = -sin(t) .. sin(t), color = green)
c2 := plot3d([cos(t), sin(t), z], t = 0 .. 2*Pi, z = -sin(t) .. sin(t), color = blue)
display(c1, c2)

This generates a plot of the intersection region with the portions of the cylinders extending beyond the region removed. Is it possible todo the same with Sage's plot3d commands?

Regards,

edit retag close merge delete

Sort by » oldest newest most voted

We have a "region" argument to implicit_plot3d that is something like that:

implicit_plot3d((x^2 + y^2 + z^2), (x, -2, 2), (y, -2, 2), (z, -2, 2), plot_points=60, contour=[1,3,5], region=lambda x,y,z: x<=0.2 or y>=0.2 or z<=0.2)

See http://www.sagemath.org/doc/reference... for more details. It would be great to add this sort of functionality to parametric plots.

more