<font><font face="verdana,sans-serif">NsPx, decimation is quite the opposite of mesh subdivision. Decimation reduces complexity (simplifies the mesh), while subdivision increases number of vertices, edges and faces.<br></font></font><br>
<div class="gmail_quote">On Tue, Aug 28, 2012 at 3:07 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">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="gmail_quote"><div><div class="h5">On Tue, Aug 28, 2012 at 9:02 AM, NsPx <span dir="ltr"><<a href="mailto:nspx.roronoa@gmail.com" target="_blank">nspx.roronoa@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 text="#003333" bgcolor="#FFFFFF">
<font size="-1"><font face="Tahoma">Hi all,<br>
<br>
I would like to decimate a mesh using a criterion (let's say
"edge length <=1"). <br>
<br>
By searching through the documentation, I find the only way is
to use vtkStreamingTesselator coupled with
vtkEdgeSubdivisionCriterion but I don't really understant how to
use it. <br>
<br>
Mainly, I can't pass a vtkPolyData, I have to use it cell
(triangle) by cell ? How can I use the callabacks ?<br>
Can someone provide some example ?<br>
<br>
Thanks by advance.</font></font></div></blockquote><div><br></div></div></div>There are a few subdivision techniques available:Â <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Subdivision" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Subdivision</a><br clear="all">
<br>Will any of those suit your needs?</div><div class="gmail_quote"><br></div><div class="gmail_quote">To your second question (very separate from the first, no?) - you can find an example of using a callback here:Â <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/KeypressObserver" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/KeypressObserver</a></div>
<span class="HOEnZb"><font color="#888888">
<div class="gmail_quote"><br>David</div>
</font></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>