1 | initial version |
you can now use the add_condition
method as follows
sage: x,y,z=var('x,y,z')
sage: P = implicit_plot3d((x^2+y^2-.4)*(x^2+z^2-.4)*(z^2+y^2-.4)*(x^2+(y-z)^2/2-.4
....: )*(z^2+(x-y)^2/2-.4)*(y^2+(x-z)^2/2-.4)*(x^2+(y+z)^2/2-.4)*(z^2+(x+y)^2/2-
....: .4)*(y^2+(x+z)^2/2-.4)==1, (x, -3, 3), (y, -3,3), (z, -3,3), color='green'
....: , plot_points=100)
sage: def condition(x,y,z):
....: return x^2+y^2+z^2<10
sage: Q = P.add_condition(condition)
sage: Q