<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I got a clue from the Glyph3D example, which shows the check for VTK_MAJOR_VERSION <= 5<br>
I then replaced these lines<br>
//    tensorGlyph->SetInputData(polyData);<br>
//    tensorGlyph->SetSourceConnection(cubeSource->GetOutputPort());<br>
    tensorGlyph->SetSource(cubeSource->GetOutput());<br>
    tensorGlyph->SetInput(polyData);<br>
and this one<br>
//    mapper->SetInputData(tensorGlyph->GetOutput());<br>
    mapper->SetInputConnection(tensorGlyph->GetOutputPort());<br>
and now it builds and runs :)<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF982177"><font color="#000000" face="Tahoma" size="2"><b>From:</b> vtkusers [vtkusers-bounces@vtk.org] on behalf of Gib Bogle [g.bogle@auckland.ac.nz]<br>
<b>Sent:</b> Saturday, 12 July 2014 8:56 p.m.<br>
<b>To:</b> vtkusers@vtk.org<br>
<b>Subject:</b> [vtkusers] TensorGlyph<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi,<br>
I tried to build this example: <br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Visualization/TensorGlyph" rel="nofollow" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Visualization/TensorGlyph</a><br>
but I get two errors:<br>
    class "vtkTensorGlyph" has no member "SetInputData"   <br>
    class "vtkPolyDataMapper" has no member "SetInputData"   <br>
I am using VTK-5.10<br>
<br>
Regards<br>
Gib<br>
<br>
<br>
</div>
</div>
</div>
</div>
</body>
</html>