[vtkusers] How to get color of pixel(or position) on colored polydata
Tharun
tharun160190 at gmail.com
Tue Apr 25 05:42:52 EDT 2017
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.
More information about the vtkusers
mailing list