[vtkusers] Uniform subsampling of mesh (point cloud) and normals
David Doria
daviddoria at gmail.com
Thu May 5 20:00:12 EDT 2011
On Thu, May 5, 2011 at 5:00 PM, agerlach <agerlach at gmail.com> wrote:
> Dang David. How come you always have a solution for my questions?
>
> I was hoping to find something that didn't require meshing points, but
> depending on how long that takes this may be a good solution. Do you have a
> recommendation of what class to use to mesh the output?
>
> Does your class interpolate the point scalars as well when sampling?
>
> Thanks...again
> Adam
>
You could use this to mesh the output:
http://www.insight-journal.org/browse/publication/718
I don't believe the stratified sampling does any interpolation - the output
is just points. You could do the interpolation yourself using something like
this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/vtkKdTree_BuildLocatorFromPoints_ClosestKPoints
to find a "neighborhood" of points and then weight their scalars according
to the distance from the query point.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110505/09b0d4a5/attachment.htm>
More information about the vtkusers
mailing list