Gerard Gorman wrote:
> You probably need to write your own small python or c++ program to
> calculate it (I'd recommend python because it would be quicker). You'd
> generate n points along the path, put these into a vtkPolyData object
> and set this as the inport to a vtkProbeFilter
> (http://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html), and set
> your mesh with the velocity vector as the filter source. You can extract
> the velocity vectors from this filter and dot them with the tangent
> vectors at your sample points. You could do this either using the basic
> VTK python interface or (the more modern approach) use the traited
> version with mayavi2.

Thanks Gerard.  The nice thing about using TVTK for the calculation (you 
don't need to use mayavi2 itself) is that you can use numpy arrays to 
generate the mesh and extract back the probed velocities.  Doing the 
integral then should be much easier and fast as well.

cheers,
prabhu


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to