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

Warn color range clamping #303

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

albertopasqualetto
Copy link

I encountered the problem described in #102 since I did not read the documentation carefully and I think that a warning should be shown when values are clamped, otherwise the results are not those expected (for surface meshes vertex coloring I get flat color faces instead of color gradients centered on the vertex).

I implemented an utility function to show a warning.
I am a novice of this library, so I am not sure I did everything correctly.
Also the code is not tested, but it is pretty easy.

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

Successfully merging this pull request may close these issues.

1 participant