<div dir="ltr">Hi Fernando,<div><br></div><div>You got a quite complicated pipeline here :). Just a thought without knowing all the details, you may try to decrease the Tolerance value in vtkSelectVisiblePoints. The default value might not work well with your data.</div><div><br></div><div>Yumin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 28, 2016 at 11:23 AM, Fernando Nellmeldin <span dir="ltr"><<a href="mailto:f.nellmeldin@open-engineering.com" target="_blank">f.nellmeldin@open-engineering.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello. <div>Does anyone has any tips? <div>Thank you.<br><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-01-25 10:39 GMT+01:00 Fernando Nellmeldin <span dir="ltr"><<a href="mailto:f.nellmeldin@open-engineering.com" target="_blank">f.nellmeldin@open-engineering.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello.<div>I'm trying to show the values of a contour as labels. Each label is fixed to a point in the contour. I do not want to show the labels that are anchored to points that are not visible. </div><div><br></div><div>To achieve this, I followed these two examples: </div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabelContours" style="font-size:12.8px" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabelContours</a></div><div><a href="http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Annotation/Python/labeledMesh.py" style="font-size:12.8px" target="_blank">http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Annotation/Python/labeledMesh.py</a></div><div><br></div><div>Unfortunately, the removal of hidden points (and thus, of labels) is not working as expected. I attach three pictures of the behavior when I move the camera. Look at the values on the top (365 and 399).</div><div><br></div><div>The Pipeline I am using is the following:</div><div>vtkUnstructuredGrid -> vtkGeometryFilter -> vtkContourFilter -> vtkStripper -> (create a vtkPolyData with one point of each contour) -> vtkSelectVisiblePoints -> vtkLabeledDataMapper -> vtkActor2D.</div><div><br></div><div>I am using VTK 5.10 but I tried with VTK 6.3 and the problem is worse (nothing is hidden). This is under Windows 8.1.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Thank you.</div><div><div><br></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><b>Fernando NELLMELDIN</b><br>Software Engineer<div style="font-size:12.8px"><b style="font-size:12.8px"><font color="#cc0000">_______________________________________________________________</font></b><br></div><div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b><font color="#000000">O</font><font color="#cc0000">pen E</font><font color="#000000">ngineering s.a.</font></b></div><div style="font-size:12.8px"><font color="#000000"><br></font></div><div style="font-size:12.8px"><font color="#000000">Rue Bois Saint-Jean 15/1</font></div><div style="font-size:12.8px"><font color="#000000">B-4102 Seraing (Belgium)</font></div><div><font color="#000000" style="font-size:12.8px">Tel: </font><a href="tel:%2B32.4.353.30.34" value="+3243533034" target="_blank">+32.4.353.30.34</a> </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><a href="http://www.open-engineering.com/" style="color:rgb(17,85,204)" target="_blank">http://www.open-engineering.com</a><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><a href="https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym" style="color:rgb(17,85,204)" target="_blank">https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym</a><br></div><div style="font-size:12.8px"><b><font color="#cc0000"><span style="font-family:'arial black',sans-serif;font-size:12.8px">_________________________________________________________________________<br><img src="http://www.open-engineering.com/download/files/signatures/ENOVA_LYON_stand_C52.jpg"><br></span></font></b></div></div></div></div></div></div>
</div></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>