<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Thanks for your reply. It works.</div><div><br></div><div>The normals of the triangles are correct. What if I want to visualize only some of the normals?</div><div>Can I just modify the normal vector of the point data of centers?</div><div>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.</div><div><br></div><div>I want to set the vectors of red regions to be zero and leave the vectors of the blue regions untouched.</div><div><br></div><div>I set the normals of the red regions to be zero.</div><div><br></div><div>I got the attached figure, which is not what I want</div><div><br></div><div>Thanks a lot.</div><div><br></div><div><br></div><div><br></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>woshizyc@gmail.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:jfavre@cscs.ch">Favre Jean</a></div><div><b>Date:</b> 2017-11-29 00:21</div><div><b>To:</b> <a href="mailto:woshizyc@gmail.com">woshizyc@gmail.com</a>; <a href="mailto:cory.quammen@kitware.com">Cory Quammen</a></div><div><b>CC:</b> <a href="mailto:vtkusers@vtk.org">vtkusers</a></div><div><b>Subject:</b> RE: [vtkusers] Visualize cell normal vector of polydata</div></div></div><div><div class="FoxDiv20171129180216993795">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">more specifically:<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div><span style=""></span><span style=""></span><br>
<span style=""></span>
<div><span style="">centers = vtk.vtkCellCenters()</span></div>
<div><span style="">centers.</span><span style=""><span style=""><span style="">SetInputConnection</span></span>(normals.GetOutputPort())</span></div>
<div><span style=""><br>
</span></div>
<div><span style=""></span><span style=""><span style="">glyph.SetInputConnection(centers.GetOutputPort())</span></span></div>
<br>
</div>
</div>
</div>
</div></div></blockquote>
</body></html>