[vtkusers] TensorGlyph

Gib Bogle g.bogle at auckland.ac.nz
Sat Jul 12 06:00:56 EDT 2014


I got a clue from the Glyph3D example, which shows the check for VTK_MAJOR_VERSION <= 5
I then replaced these lines
//    tensorGlyph->SetInputData(polyData);
//    tensorGlyph->SetSourceConnection(cubeSource->GetOutputPort());
    tensorGlyph->SetSource(cubeSource->GetOutput());
    tensorGlyph->SetInput(polyData);
and this one
//    mapper->SetInputData(tensorGlyph->GetOutput());
    mapper->SetInputConnection(tensorGlyph->GetOutputPort());
and now it builds and runs :)

________________________________
From: vtkusers [vtkusers-bounces at vtk.org] on behalf of Gib Bogle [g.bogle at auckland.ac.nz]
Sent: Saturday, 12 July 2014 8:56 p.m.
To: vtkusers at vtk.org
Subject: [vtkusers] TensorGlyph

Hi,
I tried to build this example:
http://www.vtk.org/Wiki/VTK/Examples/Visualization/TensorGlyph
but I get two errors:
    class "vtkTensorGlyph" has no member "SetInputData"
    class "vtkPolyDataMapper" has no member "SetInputData"
I am using VTK-5.10

Regards
Gib


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140712/a0774eda/attachment.html>


More information about the vtkusers mailing list