Applied to CVS HEAD. We'll merge it to the VTK-5-2 branch after at least one night on the dashboard...<br><br><br><div class="gmail_quote">On Mon, Apr 28, 2008 at 12:16 PM, Amy Squillacote <<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It was as easy to fix as I expected. I've attached the patch.<br><font color="#888888">
<br>
- Amy</font><div><div></div><div class="Wj3C7c"><br>
<br>
Amy Squillacote wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks. Dave Cole offered to do that too. I'll try to send it later today to tomorrow.<br>
<br>
- Amy<br>
<br>
Berk Geveci wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Amy,<br>
<br>
If you send a patch, I can put it in the release.<br>
<br>
-berk<br>
<br>
<br>
On Mon, Apr 28, 2008 at 11:22 AM, Amy Squillacote <<a href="mailto:ahs@cfdrc.com" target="_blank">ahs@cfdrc.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br>
<br>
I just noticed that vtkTensorGlyph is not using the<br>
Set/GetInputArrayToProcess methods in vtkAlgorithm. Instead it is getting<br>
the tensors and scalars arrays directly from the vtkPointData of the input,<br>
so you have to set these on the filter's input in order to get it to work. I<br>
think it should be pretty straightforward to fix this, and it would be nice<br>
to have it in the 5.2 release as well.<br>
<br>
- Amy<br>
<br>
--<br>
Amy Squillacote Phone: (256) 726-4839<br>
Computer Scientist Fax: (256) 726-4806<br>
CFD Research Corporation Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL 35805<br>
<br>
<br>
_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Amy Squillacote Phone: (256) 726-4839<br>
Computer Scientist Fax: (256) 726-4806<br>
CFD Research Corporation Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL 35805<br>
<br>
</div></div><br>Index: vtkTensorGlyph.cxx<br>
===================================================================<br>
RCS file: /cvsroot/VTK/VTK/Graphics/vtkTensorGlyph.cxx,v<br>
retrieving revision 1.59<br>
diff -u -r1.59 vtkTensorGlyph.cxx<br>
--- vtkTensorGlyph.cxx 17 Sep 2006 15:01:24 -0000 1.59<br>
+++ vtkTensorGlyph.cxx 28 Apr 2008 16:10:15 -0000<br>
@@ -47,6 +47,14 @@<br>
this->Length = 1.0;<br>
<br>
this->SetNumberOfInputPorts(2);<br>
+<br>
+ // by default, process active point tensors<br>
+ this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS,<br>
+ vtkDataSetAttributes::TENSORS);<br>
+<br>
+ // by default, process active point scalars<br>
+ this->SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS,<br>
+ vtkDataSetAttributes::SCALARS);<br>
}<br>
<br>
//----------------------------------------------------------------------------<br>
@@ -115,8 +123,8 @@<br>
<br>
pd = input->GetPointData();<br>
outPD = output->GetPointData();<br>
- inTensors = pd->GetTensors();<br>
- inScalars = pd->GetScalars();<br>
+ inTensors = this->GetInputArrayToProcess(0, inputVector);<br>
+ inScalars = this->GetInputArrayToProcess(1, inputVector);<br>
numPts = input->GetNumberOfPoints();<br>
<br>
if ( !inTensors || numPts < 1 )<br>
<br></blockquote></div><br>