<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#003333" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 28/08/2012 17:27, Dženan Zukić a
écrit :<br>
</div>
<blockquote
cite="mid:CAPf2UMT2V2+q1t3LGzE9x_yD=KnQP1NGhO9CBSJrPYzxL-iv9w@mail.gmail.com"
type="cite"><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 moz-do-not-send="true"
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 moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<font size="-1"><font face="Tahoma">Sorry for my mistake, I'm
talking about subdivision of course !</font></font><br>
</body>
</html>