[vtkusers] Calculating derivatives
Hans van Piggelen
hansvp at hotmail.com
Thu Apr 3 08:24:06 EDT 2008
Hi there,
For a while now I'm trying to calculate the spatial derivative of a dataset with an unstructured grid. I use the vtkCellDerivatives and vtkCellDataToPointData classes for this, but it seems that they are not working properly: the original input data set's values are the outcome after filtering. I need help with this, so any advice is welcome.
The code:
vtkCellDerivatives *vCellDerivatives = vtkCellDerivatives::New();vtkCellDataToPointData *vCellToPointData = vtkCellDataToPointData::New();vCellDerivatives->SetVectorModeToComputeGradient();vCellDerivatives->SetInput(vEnsightReader->GetOutput());vCellDerivatives->Update();vCellToPointData->SetInput(vCellDerivatives->GetOutput());vCellToPointData->Update();
The code compiles and runs but gives incorrect results. Please help!
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080403/5f6c7997/attachment.htm>
More information about the vtkusers
mailing list