[vtkusers] vtkImageData from a closed vtkPolyData

David Gobbi david.gobbi at gmail.com
Tue Apr 15 10:58:09 EDT 2008


Aha.  That method was added to the class only a couple months ago.

   David



On Tue, Apr 15, 2008 at 10:54 AM, Mathieu Coursolle
<mcoursolle at rogue-research.com> wrote:
> Finally, I was not setting SetInformationInput() to
> vtkPolyDataToImageStencil.
>  It is now working just fine.
>
>  Thank you.
>  Mathieu
>
>
>
>  On 15-Apr-08, at 10:39 AM, David Gobbi wrote:
>
>
> > Hi Mathieu,
> >
> > You can convert triangle strips into individual triangles using the
> > vtkTriangleFilter.  This is not necessary with
> > vtkPolyDataToImageStencil, though; it will work with triangle strips,
> > too.
> >
> > Look at Hybrid/Testing/Tcl/TestImageStencilWithPolydata.tcl
> >
> >  David
> >
> >
> >
> > On Tue, Apr 15, 2008 at 10:29 AM, Mathieu Coursolle
> > <mcoursolle at rogue-research.com> wrote:
> >
> > > Hi VTK users,
> > >
> > > I have a closed vtkPolyData (a modified sphere), which is composed of
> > > triangle strips.
> > > I would like to create a vtkImageData to generate a mask of the inside
> > > voxels of the vtkPolyData.
> > >
> > > Is there an easy way to do that using vtk classes?
> > >
> > > I am experimenting with vtkPolyDataToImageStencil right now with no
> > > success.
> > >
> > > Looking at the docs, it says:
> > >
> > > "The input polydata must contain polygons (or other 2D cells) that form
> a
> > > 3D surface that encloses a finite volume."
> > >
> > > I am not sure I understand if I can use my vtkPolyData as an input then?
> > > How can I transform my triangle strips polydata into polygons that will
> > > allow the mask to be generated?
> > >
> > > Thanks!
> > >
> > > Mathieu
> > > _______________________________________________
> > > 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