<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>I originally wrote the vtkGradientFilter (the underlying filter for Gradient of Unstructured DataSet). &nbsp;It has always worked on any vtkDataSet, but the original implementation always went through the vtkDataSet::GetCell interface to compute the gradients
 and so was far less efficient than it could have been. &nbsp;Because of this, the XML wrapper for the filter limited the input to point data to use the more efficient vtkImageGradient filter on image data.</div>
<div><br>
</div>
<div>Since that time, others have contributed to vtkGradientFilter. &nbsp;There is now a more efficient implementation for structured grids of all kinds, so it now makes more sense to use this filter for all gradient operations. &nbsp;Before doing that, however, you
 should compare the speed and result of vtkGradientFilter with vtkImageGradient.</div>
<div><br>
</div>
<div>On a slightly different topic, there are at least two other filters that compute gradients in slightly different ways: vtkCellDerivatives and vtkDataSetGradient. &nbsp;At one point I was motivated to consolidate all of these filters into a single filter, but
 I never finished.</div>
<div><br>
</div>
<div>-Ken</div>
<div><font size="2"><font face="Consolas,Courier New,Courier"><span style="font-size:10pt"><br>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<br>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<br>
*********** &nbsp;<br>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><br>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<br>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Andy Bauer &lt;<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Thu, 19 May 2011 14:08:55 -0400<br>
<span style="font-weight:bold">To: </span>&lt;<a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[Paraview-developers] gradient filters<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
I'm looking at the 2 gradient filters available in the ParaView GUI and trying to improve their functionality.&nbsp; I see that the &quot;Gradient of Unstructured DataSet&quot; filter only works with vtkPointSets in ParaView but in general can handle vtkImages and vtkRectilinearGrids
 as well.&nbsp; The Gradient filter only works on image data.&nbsp; This means that there is on gradient filter for rectilinear grids and that any multiblock data set with mixed data set types can't be used with the gradient filter either.&nbsp; Because of this I'm wondering
 why the Gradient of Unstructured DataSet filter was limited to just vtkPointSets.&nbsp; Obviously performance is an issue.&nbsp; On an image data with 100 million cells, 1000 by 1000 by 100 whole extent, it took 14.5 seconds to create the image data with the wavelet
 source and run the Gradient filter.&nbsp; Using the Gradient of Unstructured DataSet filter instead it took 41.9 seconds.&nbsp;
<br>
<br>
The Gradient of Unstructured DataSet does have more functionality (operates on arrays with more than a single component, can calculate vorticity,...) but I'd like to look into getting a better interface to gradients and am trying to encourage input on that
 process.<br>
<br>
Thanks,<br>
Andy<br>
<br>
_______________________________________________ Paraview-developers mailing list <a href="mailto:Paraview-developers@paraview.org">
Paraview-developers@paraview.org</a> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers">
http://public.kitware.com/mailman/listinfo/paraview-developers</a> </blockquote>
</span>
</body>
</html>