[vtkusers] mesh subdivision and uniform point distribution
ruifigueiredo at isr.ist.utl.pt
ruifigueiredo at isr.ist.utl.pt
Mon Apr 30 10:26:27 EDT 2012
Thanks David for your quick reply,
I gave a look what the stratified sampling algorithm you've mentioned,
but I still have some questions:
As I understood, the "Level" option controls the density of the
points, but how is this done? Is it possible to specify the sampling
step? Does this method works for upsampling or only for downsampling?
I've implemented an upsampling idea I found somewhere on the internet that
upsamples the number of points inside a polygon, with a guarantee
that, along the interpolated directions, the distance between
interpolated locations is not greater than a threshold. Keeping the
mesh connectivity should be easy, since the upsampling is made
individualy for each polygon on the mesh then, one should know the
direction of the triangulations.
Rui
Quoting David Doria <daviddoria at gmail.com>:
> Wenlong, ICP is for registration, not sampling.
>
> Rui, I you might look at something like Stratified Sampling:
> https://github.com/daviddoria/StratifiedSampling
>
> or a built-in VTK option is the vtkCleanPolyDataFilter:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DownsamplePointCloud
>
> However, neither of these preserve mesh connectivity (i.e. they are just
> point cloud operations) so you'd have to do some remeshing after the fact.
>
> Good luck,
>
> David
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the vtkusers
mailing list