implicit_plot3d raises a MemoryError when the bounding box defined by the x,y,z min/max ranges does not contain the surface. For example, consider the following command that plots half of a sphere:
sage: var('x, y, z') sage: implicit_plot3d(x^2 + y^2 + z^2 - 1, (x,0,2), (y,-1,1), (z,-1,1)).show(viewer='tachyon') when x_min (currently equal to 0) is increased until the bounding box no longer contains the sphere (anything greater than or equal to 1 will do this), a MemoryError is raised. More specifically: sage: implicit_plot3d(x^2 + y^2 + z^2 - 1, (x,1,2), (y,-1,1), (z,-1,1)).show(viewer='tachyon') (which does not contain the sphere) returns "MemoryError: Out of memory allocating triangulation for <type 'sage.plot.plot3d.implicit_surface.ImplicitSurface'>" Is there a way to detect this scenario so a less misleading message could be returned? For the 2-dimensional implicit_plot command, when the bounding rectangle does not contain the contour line, an empty plot is returned. It would be desirable to have implicit_plot3d behave similarly when it runs into this type of situation. I have tested this on Sage 4.3.4 (my machine) and on Sage 4.4 (www.sagenb.org). -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org