Use Scalar And vtkColorTransferFunction To Set Different Color For Polydata
How to set different colors for different parts of a single 3D model? The article introduces a way that set scalars for pointData and map the information by vtkColorTransferFunction object, then vtkPolyDataMapper object configure a correct scalar mode and use vtkColorTransferFunction object as its lookupTable. The code snippet shows all Read more…