[vtkusers] Voxelizer

Hari Sundar hsundar at caip.rutgers.edu
Thu Mar 21 08:21:15 EST 2002


Hi David,

thanks for the help. I modified the example and managed to get a volume
for the sphere. However, it doesn't work when I use a polydata (that I
read in from a vtk file). I used GetBounds to determine the final volume
size, therefor I can't be missing the polydata.

Any suggestions ?

thanks,
Hari

On Wed, 20 Mar 2002, David Gobbi wrote:

> Hi Hari,
>
> In VTK 4.x there is a vtkPolyDataToImageStencil filter that can
> be used to mask an image using vtkPolyData.  An example is located
> in VTK/Hybrid/Testing/Tcl/TestImageStencilWithPolydata.tcl.  You
> would have to replace the image reader with something that will
> produce a blank initial image, e.g. a vtkImageGridSource where
> the LineValue and FillValue are both set to zero and where the
> DataExtent, DataSpacing and DataOrigin are correctly set.
>
> The vtkPolyDataToImageStencil is not perfect, sometimes it 'leaks'.
>
>  - David
>
> --
>   David Gobbi, MSc                       dgobbi at irus.rri.ca
>   Advanced Imaging Research Group
>   Robarts Research Institute, University of Western Ontario
>
> On Wed, 20 Mar 2002, Hari Sundar wrote:
>
> > Hi,
> >
> > Is there any class in VTK that will allow me to get a binary volumetric
> > data from a polygonal model ?
> >
> > thanks,
> > Hari
> >
> > -----------------------------------------------------------------------
> >        Home				       Work
> > -----------------------------------------------------------------------
> >  375-C Buell Apartments,		   Dept. of ECE
> >  23909 BPO Way,				   Rutgers University
> >  Rutgers University,			   96 Frelinghuysen Road
> >  Piscataway, NJ 08854			   Piscataway, NJ 08854
> >  ph: (732)878 0424			   ph: (732)445 0564
> > -----------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>

-----------------------------------------------------------------------
       Home				       Work
-----------------------------------------------------------------------
 375-C Buell Apartments,		   Dept. of ECE
 23909 BPO Way,				   Rutgers University
 Rutgers University,			   96 Frelinghuysen Road
 Piscataway, NJ 08854			   Piscataway, NJ 08854
 ph: (732)878 0424			   ph: (732)445 0564
-----------------------------------------------------------------------





More information about the vtkusers mailing list