Hi all,<br><br>I am new to Paraview and I could not find any clear information on how 2D glyphs are oriented. Is there a way to control their normals to the the 2D plane?<br><br>Here is the code I use to generate a cloud of points from a text file to which I would like to assign different filters (it can be 3D or 2D, but circles oriented by their normals would be perfect...)<br>
<br>/// here is the part to recover the data<br>std::ifstream file (&quot;cracks.txt&quot;,std::ios::in);<br>        if(file){<br>             while ( !file.eof() ){ <br>                std::string line;<br>                Real p0,p1,p2,s,o0,o1,o2;<br>
                while ( std::getline(file, line) ){<br>                    file &gt;&gt; p0 &gt;&gt; p1 &gt;&gt; p2 &gt;&gt; s &gt;&gt; o0 &gt;&gt; o1 &gt;&gt; o2;<br>                    vtkIdType pid[1];<br>                    pid[0] = crackPos-&gt;InsertNextPoint(p0, p1, p2);<br>
                    crackCells-&gt;InsertNextCell(1,pid);<br>                    crackSize-&gt;InsertNextValue(s);<br>                    float n[3] = { o0,o1,o2 };<br>                    crackOri-&gt;InsertNextTupleValue(n);<br>
                }<br>             }<br>             file.close();<br>} <br>              <br>/// here is the code to create the VTK file<br>vtkSmartPointer&lt;vtkUnstructuredGrid&gt; crackUg = vtkSmartPointer&lt;vtkUnstructuredGrid&gt;::New();<br>
crackUg-&gt;SetPoints(crackPos);<br>crackUg-&gt;SetCells(VTK_VERTEX, crackCells);<br>crackUg-&gt;GetPointData()-&gt;AddArray(crackSize);<br>crackUg-&gt;GetPointData()-&gt;AddArray(crackOri); <br>    <br>vtkSmartPointer&lt;vtkXMLUnstructuredGridWriter&gt; writer = vtkSmartPointer&lt;vtkXMLUnstructuredGridWriter&gt;::New();<br>
string fn=fileName+&quot;cracks.&quot;+lexical_cast&lt;string&gt;scene-&gt;currentIteration)+&quot;.vtu&quot;;<br>writer-&gt;SetFileName(fn.c_str());<br>writer-&gt;SetInput(crackUg);<br>writer-&gt;Write();<br><br>Do you have any advice?<br>
<br>Tahnks a lot in advance<br><br>  Luc<br><br><br> <br>