[vtkusers] TensorGlyph

Bill Lorensen bill.lorensen at gmail.com
Sat Jul 12 08:19:02 EDT 2014


I'll fix the example on the wiki so it works for both vtk5 and vtk6.
 Normally the night builds would catch this, but the example was in
the wring location.


On Sat, Jul 12, 2014 at 6:00 AM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> 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
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list