[vtkusers] Visualize cell normal vector of polydata

Cory Quammen cory.quammen at kitware.com
Wed Nov 29 09:42:37 EST 2017


If their is a scalar value that controls which arrow glyphs you want
to see, you can use vtkThreshold applied to vtkGlyph3D to exclude
those you don't want to see.

Cory

On Wed, Nov 29, 2017 at 6:42 AM, woshizyc at gmail.com <woshizyc at gmail.com> wrote:
> Thanks for your reply. It works.
>
> The normals of the triangles are correct. What if I want to visualize only
> some of the normals?
> Can I just modify the normal vector of the point data of centers?
> I tried to set all the normal vectors that I do not want to visualize to
> (0,0,0). However, it does not work out as I expected. Please see the
> attached figure.
>
> I want to set the vectors of red regions to be zero and leave the vectors of
> the blue regions untouched.
>
> I set the normals of the red regions to be zero.
>
> I got the attached figure, which is not what I want
>
> Thanks a lot.
>
>
>
>
> ________________________________
> woshizyc at gmail.com
>
>
> From: Favre Jean
> Date: 2017-11-29 00:21
> To: woshizyc at gmail.com; Cory Quammen
> CC: vtkusers
> Subject: RE: [vtkusers] Visualize cell normal vector of polydata
> more specifically:
>
> centers = vtk.vtkCellCenters()
> centers.SetInputConnection(normals.GetOutputPort())
>
> glyph.SetInputConnection(centers.GetOutputPort())
>
>
> _______________________________________________
> 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