gp-old icon indicating copy to clipboard operation
gp-old copied to clipboard

How to choose rgb colors from singular scalar value

Open oveddan opened this issue 7 years ago • 3 comments

Is there a recommendation for picking RGB values from a scalar value?

oveddan avatar Apr 12 '17 21:04 oveddan

igl::jet(sfield, true, colors)

WDYBQJ avatar Apr 12 '17 21:04 WDYBQJ

Thank you!!!

oveddan avatar Apr 12 '17 21:04 oveddan

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.

majia67 avatar Apr 11 '18 01:04 majia67