[vtkusers] Molding an image slice
David Gobbi
david.gobbi at gmail.com
Thu Apr 6 10:37:03 EDT 2017
Hi Shark,
Yup, adding scalar attributes to the polydata works. As you can probably
tell, though, I'm a fan of using texture maps for these sorts of problems.
- David
On Thu, Apr 6, 2017 at 8:08 AM, Shark <m.nunes at fratoria.com> wrote:
> David,
> all your tips are extremely appreciated!
> I am sure this will be useful for other people in the future :-)
>
> I have solved my case by adding celldata values to my plane, and then
> passing the LUT to the mapper.
> plane->GetOutput()->GetCellData()->SetScalars(cellData);
>
> Worked as a charm. Now my plane is correctly colored.
>
> Best regards,
> shark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170406/457b5dd2/attachment.html>
More information about the vtkusers
mailing list