#9482: implicit_plot3d gives "Out of memory allocating triangulation" when
plotting an empty surface
------------------------+---------------------------------------------------
   Reporter:  cwitty    |       Owner:  cwitty  
       Type:  defect    |      Status:  new     
   Priority:  major     |   Milestone:  sage-4.5
  Component:  graphics  |    Keywords:          
     Author:            |    Upstream:  N/A     
   Reviewer:            |      Merged:          
Work_issues:            |  
------------------------+---------------------------------------------------
 When you construct an implicit_plot3d that doesn't actually contain any
 surface, you get a {{{MemoryError}}} (because it tries to allocate 0
 memory to hold the vertices and faces, gets a NULL pointer, and decides
 that's an out-of-memory condition).

 Here's one example:

 {{{
 sage: implicit_plot3d(x*x + y*y + z*z - 5000, (x, -5, 5), (y, -5, 5), (z,
 -5, 5))
 }}}
 ... long traceback, ending:
 {{{
 /home/cwitty/sage/local/lib/python2.6/site-
 packages/sage/plot/plot3d/implicit_surface.so in
 sage.plot.plot3d.implicit_surface.ImplicitSurface.jmol_repr
 (sage/plot/plot3d/implicit_surface.c:10893)()

 /home/cwitty/sage/local/lib/python2.6/site-
 packages/sage/plot/plot3d/implicit_surface.so in
 sage.plot.plot3d.implicit_surface.ImplicitSurface.triangulate
 (sage/plot/plot3d/implicit_surface.c:11290)()

 /home/cwitty/sage/local/lib/python2.6/site-
 packages/sage/plot/plot3d/index_face_set.so in
 sage.plot.plot3d.index_face_set.IndexFaceSet.realloc
 (sage/plot/plot3d/index_face_set.c:3662)()

 MemoryError: Out of memory allocating triangulation for <type
 'sage.plot.plot3d.implicit_surface.ImplicitSurface'>
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9482>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to