[vtkusers] Reduce points on the surface model

Wenlong Wang scc.wwl at gmail.com
Fri Nov 23 07:27:07 EST 2012


Hi, David and all

Thank you for your reply.

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.

Regards
Wenlong

2012/11/22 David Doria <daviddoria at gmail.com>

> On Thu, Nov 22, 2012 at 1:25 PM, R D <rupin.dalvi at gmail.com> wrote:
>
>> Have a look at this, it should help:
>>
>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/Decimation
>>
>> Regards,
>>
>> Rupin
>
>
> I don't believe VTK has anything to guarantee the "uniformly distributed"
> nature of the points.
>
> There is an algorithm called "stratified sampling" that does this. You can
> try this implementation:
> https://github.com/daviddoria/StratifiedSampling
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121123/ab43114d/attachment.htm>


More information about the vtkusers mailing list