<div dir="ltr">Dear David,<br>I appreciate your kind responses ...<br><br>1. Attached a clearer image represents two colored arrows:<br><br>first (white) from the .vtp file which visualized by 3dGlyphs and second (pink) represents what I'm searching for: the orthogonal arrows - which have been achieved by the filter in para-view: normal glyphs.<br>
<br>which arrow (white or pink) is achieved by this command?<br>m_normalGenerator->GetOutput()->GetPointData()->GetNormals()->GetTupleValue(idx,arr);<br><br>2. The cellData's normal is calculated due to an 'average surface' in an area (cell)? any further details about this cell (how does it look like etc)? <br>
<br><br><div class="gmail_quote">On Tue, Mar 13, 2012 at 2:07 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> questions:<br>
> -------------<br>
> 1. why the following window of vtk appears with this massage ?<br>
> "vtkFieldData::GetComponent was deprecated for vtk 5.2 and will be<br>
> removed "<br>
<br>
</div>Why you are using GetComponent? You should probably use<br>
<br>
double arr[3];<br>
m_normalGenerator->GetOutput()->GetPointData()->GetNormals()->GetTupleValue(idx,<br>
arr);<br>
<br>
instead.<br>
<div class="im"><br>
> 2. what's the difference between calculating cell/point normals?<br>
<br>
</div>If you compute point normals, a normal is produced at every point in<br>
the PointData. If you compute cell normals, a normal is produced at<br>
every cell in the CellData.<br>
<div class="im"><br>
> 3. regarding the vtkXMLPolyDataWriter:<br>
> - why the .vtp represents in 3d Glyphse arrows in the same direction<br>
> as the surface and not in the orthogonal plane as supposed to be? (image<br>
> attached)<br>
<br>
</div>Your screenshot does not include the relevant portion of the window to<br>
show us your settings. My bet is that you did not set the glyphs to<br>
use the normals.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>