[vtkusers] How to get color of pixel(or position) on colored polydata

Cory Quammen cory.quammen at kitware.com
Tue Apr 25 09:06:21 EDT 2017


This example may help:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/Picking

On Tue, Apr 25, 2017 at 5:42 AM, Tharun <tharun160190 at gmail.com> wrote:
> I would like to know the color of pixel or position on actor created below.
>
> vtkSmartPointer<vtkPolyDataMapper> mapper =
> vtkSmartPointer<vtkPolyDataMapper>::New();
> mapper->SetInput(polydata);
> mapper->UseLookupTableScalarRangeOn();
> mapper->InterpolateScalarsBeforeMappingOn();
> mapper->SetLookupTable(lookUpTable);
> mapper->ImmediateModeRenderingOn();
>
> vtkSmartPointer<PSVTKLODActor> actor =
> vtkSmartPointer<PSVTKLODActor>::New();
> actor->SetMapper(mapper);
> actor->GetProperty()->SetInterpolationToFlat();
>
> Thank you
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-to-get-color-of-pixel-or-position-on-colored-polydata-tp5742972.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list