On Wed, Aug 05, 2009 at 08:46:52AM -0400, Tom Foutz wrote:
>    Thank you for your example.� I think the problem, which I failed to
>    mention, is that I am using a 2d triangular mesh.� Your example works
>    fine, until I add after mlab.clf():
>    y=np.zeros(x.shape)

>    Then the results are all zero again.� I guess the probefilter does not
>    work for 2d meshes?

It works, but you are trying to probe a 2D dimensional object in 3D: the
volume is 0. If you want to work with Mayavi/VTK, you should really be
embedded in 3D. Specificaly, the problem here is that the Delaunay filter
does not seem to work for flat points (neither Delaunay3D nor
Delaunay2D). This might be due to the VTK internals.

>    The mesh I am using is in cylindrical coordinates (r,z) with 26328
>    vertices.� For this reason, converting to a 3d mesh might not be
>    practical.

>    Is there any other sort of tool to probe 2d triangular meshes?

Well, ProbeFilter is the right way to probe a structure, the problem here
is that you don't have one.

Ga�l

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to