Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to choose rgb colors from singular scalar value #15

Open
oveddan opened this issue Apr 12, 2017 · 3 comments
Open

How to choose rgb colors from singular scalar value #15

oveddan opened this issue Apr 12, 2017 · 3 comments

Comments

@oveddan
Copy link

oveddan commented Apr 12, 2017

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

@WDYBQJ
Copy link

WDYBQJ commented Apr 12, 2017

igl::jet(sfield, true, colors)

@oveddan
Copy link
Author

oveddan commented Apr 12, 2017

Thank you!!!

@majia67
Copy link

majia67 commented Apr 11, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants