I have some colors corresponding to points. How to render point clouds and set colors for each point

  1. yes
  2. no, you shall do colors[i] = i and map colors into a vtkColorTransferFunction.newInstance()