[SciPy-User] creating a 3D surface plot from collected data
Gael Varoquaux
gael.varoquaux at normalesup.org
Tue Feb 16 18:36:24 EST 2010
On Tue, Feb 16, 2010 at 05:28:25PM -0600, Robert Kern wrote:
> No, this is not true. Delaunay2D ignores the Z coordinate and returns
> the 2D Delaunay triangulation of just the X,Y coordinates. When you
> have an z=f(x,y) functional relationship, this usually does what you
> want. It does not solve Rob's problem or that of the OP.
> http://www.vtk.org/doc/release/5.4/html/a00404.html
Wow, I am bluffed. I was pretty sure of the contrary and didn't check.
> Instead, they need the SurfaceReconstructionFilter:
> http://www.vtk.org/doc/release/5.4/html/a01651.html
Rob and David, you can use it by replacing the call to
mlab.pipeline.delaunay2d by a call to:
mlab.pipeline.user_defined(obj, filter='SurfaceReconstructionFilter'),
as in the following example:
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/example_image_cursor_filter.html
Thanks for the details, Robert.
Gaël
More information about the SciPy-User
mailing list