[vtkusers] Visualize cell normal vector of polydata
woshizyc at gmail.com
woshizyc at gmail.com
Wed Nov 29 06:42:01 EST 2017
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())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171129/fe6c2ab1/attachment.html>
More information about the vtkusers
mailing list