[vtkusers] How to paint(colorwash) the surface of an object(vtkPolyData) using values from a vtkImageData
Bill Lorensen
bill.lorensen at gmail.com
Thu Feb 28 16:16:19 EST 2008
I see. You want to apply a "texture." This is much more complex. You
will need to compute texture coordinates. If your model maps to a
cylinder, plane or sphere, this is easy. For an arbitrary surface,
this is much more difficult.
Bill
On Thu, Feb 28, 2008 at 4:03 PM, Hai Pham <hdp203 at yahoo.com> wrote:
> Thank you for your response.
>
> When I use vtkProbeFilter with vtkPolyData as input and vtkImageData as source, it seems like the filter only calculate scalar values at the vertices of each triangle in the input vtkPolyData.
> What I want is to have it automatically interpolate from vtkImageData object (NOT from triangle vertices) to determine the value of pixels inside the triangles (just like what vtkImagePlaneWidget does)
> What am I missing here?
>
> Thanks, hdp.
>
>
> ----- Original Message ----
> From: Bill Lorensen <bill.lorensen at gmail.com>
> To: hdp203 <hdp203 at yahoo.com>
> Cc: vtkusers at vtk.org
> Sent: Thursday, February 28, 2008 3:02:59 PM
> Subject: Re: [vtkusers] How to paint(colorwash) the surface of an object(vtkPolyData) using values from a vtkImageData
>
> You can use vtkProbeFilter to assign scalars to points. Specify the
> image data as the source.
>
>
> On Thu, Feb 28, 2008 at 2:36 PM, hdp203 <hdp203 at yahoo.com> wrote:
> >
> > Hi,
> > I have a vtkPolyData object and a vtkImageData object.
> > The vtkPolyData object contains a set of triangles (polys) to makeup a
> > surface of an object in 3D.
> > The vtkImageData object (in the same coordinate system as vtkPolyData
> > object) contains a 3D array of floats.
> > I want to paint(color wash) the surface of vtkPolyData object using the
> > floating point values from the 3D array.
> > Is it doable in vtk?
> > Can someone please tell me which filter(s) to use to accomplish this?
> >
> > Thank you,
> > hdp.
> > --
> > View this message in context: http://www.nabble.com/How-to-paint%28colorwash%29-the-surface-of-an-object%28vtkPolyData%29-using-values-from-a-vtkImageData-tp15744115p15744115.html
> > Sent from the VTK - Users mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > 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
> >
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
More information about the vtkusers
mailing list