用下面代码先建立颜色查找表
tableColor = vtkLookupTable.New();
tableColor.SetAlphaRange(1, 1);
tableColor.SetHueRange(0.67, 0);
tableColor.SetNumberOfColors(256);
tableColor.Build();
根据你的数据用颜色查找表上对应的颜色取渲染数据 depthPolyData.GetPointData().GetScalars().SetTuple3(i, c[0] * 255, c[1] * 255, c[2] * 255)就可以了,i是对应的数据点索引