[vtkusers] Visualize cell normal vector of polydata

Cory Quammen cory.quammen at kitware.com
Tue Nov 28 11:18:04 EST 2017


On Tue, Nov 28, 2017 at 10:59 AM, Favre  Jean <jfavre at cscs.ch> wrote:
>
> I am having doubts about the fact that one can *directly* generate
> cell-centered normal vectors. Looking at the source of ParaView, I see that
> if the association is FIELD_ASSOCIATION_CELLS, then
> vtkPVGlyphFilter::UseCellCenters() returns TRUE and a vtkCellCenters() is
> created to act as input.
>
> for reference:
>
> https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/VTKExtensions/Default/vtkPVGlyphFilter.cxx
>
> thus my suggestion is to insert a vtkCellCenters() in your pipeline, before
> the Glyph

Yep, I agree. The vtkGlyph3D filter operates only on input point data,
so you will definitely need to add a vtkCellCenters filter before the
glypher. vtkCellCenters copies cell data to point data in its output,
which is exactly what you need for vtkGlyph3D.

Cory

> -----------------
> Jean/CSCS
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list