[vtkusers] Possible to "convert" vtkPolyData to vtkImageData

David Gobbi david.gobbi at gmail.com
Thu May 15 06:48:57 EDT 2008


Feng,

The vtkPolyDataToImageStencil filter will do what you want.  Look at
Hybrid/Testing/Tcl/TestImageStencilWithPolydata.tcl.  For image data,
I wouldn't advise using a generic filter like vtkSelectEnclosedPoints
because it will be quite slow.

   David


On Thu, May 15, 2008 at 4:36 AM, Simon ESNEAULT
<simon.esneault at gmail.com> wrote:
> Hi,
>
> Not sure to understand what you really want, but if it is a "rasterization"
> process yout can use vtkSelectEnclosedPoints (maybe only on CVS)
>
> Regards
> Simon
>
> On Wed, May 14, 2008 at 6:26 PM, Feng Ding <carlding at gmail.com> wrote:
>>
>> Dear list,
>>
>> I'm going to generate some 3D volume image data for testing. I'm
>> wondering if it is possible to achieve this by filling image data
>> inside some surface mesh models. Does VTK have any functionality to do
>> this? Can someone give me a hint? Thanks.
>>
>> Best regards,
>> DING Feng
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> --
> ------------------------------------------------------------------
> Simon Esneault
> Laboratoire Traitement du Signal et de l'Image, (LTSI, UMR-INSERM 642)
> Université de Rennes I, Campus de Beaulieu,
> 35042 Rennes Cedex, France.
> Tel : +33 (0)6 64 61 30 94
> Mail : simon.esneault at univ-rennes1.fr
> ------------------------------------------------------------------
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list