<div class="gmail_quote">On Tue, Aug 28, 2012 at 9:02 AM, NsPx <span dir="ltr">&lt;<a href="mailto:nspx.roronoa@gmail.com" target="_blank">nspx.roronoa@gmail.com</a>&gt;</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&#39;s say
        &quot;edge length &lt;=1&quot;). <br>
        <br>
        By searching through the documentation, I find the only way is
        to use vtkStreamingTesselator coupled with
        vtkEdgeSubdivisionCriterion but I don&#39;t really understant how to
        use it. <br>
        <br>
        Mainly, I can&#39;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>There are a few subdivision techniques available: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Subdivision">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">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/KeypressObserver</a></div>
<div class="gmail_quote"><br>David</div>