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?
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?
Thanks again,
-Tom
On Wed, Aug 5, 2009 at 01:38, Gael Varoquaux
<[email protected]>wrote:
> On Tue, Aug 04, 2009 at 11:42:36PM -0400, Tom Foutz wrote:
> > Hi, I am working on a triangular mesh of data, and I am trying to
> > interpolate values that are between vertices. I have come up with the
> > following method:, based on Gael's previous examples. However, I
> always
> > get an array of 0.0 for output.
>
> It is hard to say, as the example you give does not run, and thus does
> not allow to test the problem.
>
> I am tempted to say that this is because you have a cloud of points that
> does not define a good interpolation domain.
>
> I have modified your example so that it works, but I have not added any
> fundemental differences.
>
> 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