<div dir="ltr"><div dir="ltr">Hi Guillaume,<div><br></div><div>I do not know of a smarter way to get what you want than to do one of the solutions you have described. You could modify vtkFeatureEdges to produce the output you want and submit it in a merge request on GitLab [1] and make the feature available to future users of the class.</div><div><br></div><div>By the way, we are transitioning from the mailing list to <a href="https://discourse.vtk.org/">https://discourse.vtk.org/</a>. Please post future questions there.</div><div><br></div><div>Thanks,</div><div>Cory</div><div><br></div><div>[1] <a href="https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md">https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md</a></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 1, 2019 at 5:59 PM Guillaume Jacquenot <<a href="mailto:guillaume.jacquenot@gmail.com">guillaume.jacquenot@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear VTK users,<div><br></div><div>I am working with a vtkPolyData made of triangles.</div><div><br></div><div>I would like to identify the feature edges WITH:</div><div><br></div><div>- the two associated triangle indices to store their normals</div><div>- the corresponding dihedral angle.</div><div><br></div><div>These results could be respectively CellData vectors and scalar of vtkFeatureEdge output, for example.</div><div><br></div><div> </div><div>1) Using vtkFeatureEdge returns a new vtkPolyData with no link with original triangles. Do I have to iterate over points of the generated vtkFeatureEdge to find the closest triangle on vtkPolyData. But it does not seem smart at all.</div><div><br></div><div>2) Rewrite vtkFeatureEdge class with only <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">FeatureEdges=1 seems possible. But is there a smarter solution?</span><br></div><div><br></div><div>3) Can vtkPolyDataNormals brings a smarter answer?</div><div><br></div><div>Thanks you for reading and your future answer!</div><div><br></div><div>Guillaume</div><div><br></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<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="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>