28 Jul 05:47
Re: Modify surf output (axes, scaling)
From: Gael Varoquaux <gael.varoquaux@...>
Subject: Re: Modify surf output (axes, scaling)
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-28 03:47:29 GMT
Subject: Re: Modify surf output (axes, scaling)
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-28 03:47:29 GMT
On Mon, Jul 28, 2008 at 09:12:07AM +0530, Prabhu Ramachandran wrote: > "from numpy import array;from enthought.mayavi.mlab import > surf;surf(array([[x*x+y*y for x in range(-5,5)] for y in range(-5,5)]))" Ooops, my bad, I could have looked that up. > Anyway, I think surf isn't doing a compute normals before the surface > module. tvtk's mlab does use a normals filter. OK, so you think that is the difference? Do you think we should do that? It is quite easy to add. Is there a performance issue? In which case should we threshold on the size of the input arrays? Or give the choice whether to add the filter or not through a keyword argument? I am all for improving mlab :). Gaƫl
RSS Feed