[vtkusers] structurating a set of unstructured points

David Doria daviddoria at gmail.com
Thu Oct 7 07:56:17 EDT 2010


On Thu, Oct 7, 2010 at 5:06 AM, Luca Penasa <luca.penasa at email.it> wrote:

> hi everybody,
>        i have a set of point as unstructured grid. these points are laying
> on
> a plane (eg a plane with normal [1,0,0]) into the 3d space. i need to
> transform this point set to an image (maybe i want a numpy matrix). I
> see there are some functions of splattering (like vtkFastSplattering or
> others) based on IDW or gaussian kernels, does anybody have some sample
> code or could help me in this problem? I think that these algorithms
> give a 3d image as output? isn't it? how could i extract a numpy
> two-dimensional matrix from that?
>
>
> hope the problem is well exposed.
> thanks!
>
>
I think this should do what you're looking for:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/QuantizePolyDataPoints

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101007/a75122b3/attachment.htm>


More information about the vtkusers mailing list