[vtkusers] display 3Dglyph with VTK6

Julien Finet julien.finet at kitware.com
Tue Jul 15 10:30:16 EDT 2014


Hi Alexis,

In your example, you should use SetInputConnection() instead of
SetInputData() for your vtkGlyph3D and vtkPolyDataMapper filters.

Hth,
Julien.


On Thu, May 15, 2014 at 5:31 PM, Girault, Alexis <girault at email.unc.edu>
wrote:

>  I am working on ShapePopulationViewer, a NITRC tool and also a module in
> Slicer4.
>
> When trying to go from VTK5 to VTK6 I ran into multiple problems, here is
> the first :
>
> I used to display surfaces with point attributes, that could be scalar or
> vectors.
> Scalar attributes would be displayed as a color for the mesh point, and
> vector attributes as 3D arrow glyph.
> 1. scalars only :
> http://www.nitrc.org/project/screenshot.php?group_id=759&screenshot_id=705
> 2. with vectors :
> http://www.nitrc.org/project/screenshot.php?group_id=759&screenshot_id=706
>
> We updated the code following the two first lines of the VTK6 Migration
> Guide :
> http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guidee
>
> Here is the example that includes most of the code updated related to the
> 3dglyph :
> https://gist.github.com/agirault/aabbf6ccb96518509683
>
> The issue : with VTK5, the glyphs are displayed, with VTK6, they are not.
> Any ideas? I am doing something wrong when setting the inputs for the data
> to read?
>
> Thanks.
> Alexis
>
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140715/b4f4fee0/attachment.html>


More information about the vtkusers mailing list