[vtkusers] VTK C++ : How to perform a velocity interpolation computation from a vtkMultiBlockDataSet with celldata?
Biddiscombe, John A.
biddisco at cscs.ch
Thu Jan 19 10:05:05 EST 2012
reader->vtkCellDataToPointData->vtkProbeFilter
if the original data contains a vector field, then just use the probefilter.
this is expensive because the entire dataset is interpolated to cell nodes and then a bilinear interpolation is used in the probefilter. But it is very simple.
To use the other classes you refer to would require much more in depth knowledge of the classes/uses.
JB
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Guillaume Jacquenot
Sent: 19 January 2012 14:48
To: vtkusers at vtk.org
Subject: Re: [vtkusers] VTK C++ : How to perform a velocity interpolation computation from a vtkMultiBlockDataSet with celldata?
Well I am not familiar with programming with VTK framework.
My objective is to use velocity vector data contained at cell centers in a vtkMultiBlockDataSet to build an instance of vtkInterpolateVelocityField, and make request on that object to retrieve interpolated velocity vector from user input point.
I came to the conclusion that I need first to transfer my cell-centered data to point data with vtkCellDataToPointData, and pass the result to vtkInterpolateVelocityField, but I don't know how to proceed.
I don't know how to explain my request at a "filter-like level".
All the examples I have looked at used the method GetOutputPort to export the result of vtkCellDataToPointData to another vtkAlgorithm, but vtkInterpolateVelocityField does not derived from a vtkAlgorithm.
I am looking for any hint to help me with this.
Best regards
--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-C-How-to-perform-a-velocity-interpolation-computation-from-a-vtkMultiBlockDataSet-with-celldata-tp5157426p5157691.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list