Skip to content

Allows hsv_to_rgb to work on negative hues#1399

Merged
jdumas merged 1 commit intolibigl:devfrom
evouga:hsv
Jan 4, 2020
Merged

Allows hsv_to_rgb to work on negative hues#1399
jdumas merged 1 commit intolibigl:devfrom
evouga:hsv

Conversation

@evouga
Copy link
Copy Markdown
Contributor

@evouga evouga commented Jan 3, 2020

The previous behavior of hsv_to_rgb is to map positive hue values to the range [0, 360], but does not do the same thing for negative values, instead returning a random result (uninitialized variables). This change causes hsv_to_rgb to always map the input hue to [0, 360].

Closes #1397.

Check all that apply (change to [x])

  • All changes meet libigl style-guidelines.
  • Adds new .cpp file.
  • Adds corresponding unit test.
  • Adds corresponding python binding.
  • This is a minor change.

… is negative, rather than returning undefined rgb.
@jdumas jdumas merged commit 56f129e into libigl:dev Jan 4, 2020
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.

2 participants