gp-old
gp-old copied to clipboard
How to choose rgb colors from singular scalar value
Is there a recommendation for picking RGB values from a scalar value?
igl::jet(sfield, true, colors)
Thank you!!!
Actually you can directly use the scalar field as the color map. Libigl viewer can automatically do the conversion. viewer.data().set_colors(sfield)
will do the trick.