Hi, David and all<br><br>Thank you for your reply. <br><br>I think vtk does not provide such a function, but I find an alternative way, though it is a bit informal. That is using vtkCleanPolyData, then by set a suitable tolerance, you can controlled the number of filtered points.<br>
<br>Regards<br>Wenlong<br><br><div class="gmail_quote">2012/11/22 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Nov 22, 2012 at 1:25 PM, R D <span dir="ltr"><<a href="mailto:rupin.dalvi@gmail.com" target="_blank">rupin.dalvi@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have a look at this, it should help:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Decimation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Decimation</a><br>
<br>
Regards,<br>
<br>
Rupin</blockquote><div><br></div></div>I don't believe VTK has anything to guarantee the "uniformly distributed" nature of the points.<div><br></div><div>There is an algorithm called "stratified sampling" that does this. You can try this implementation:</div>
<div><a href="https://github.com/daviddoria/StratifiedSampling" target="_blank">https://github.com/daviddoria/StratifiedSampling</a><span class="HOEnZb"><font color="#888888"><br clear="all"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>
David</div></font></span></div>
</blockquote></div><br>