mariuszhermansdorfer / SandWorm

Augmented Reality Sandbox for Grasshopper & Rhino
MIT License
20 stars 11 forks source link

Fix color palette failure in certain scenarios #101

Closed philipbelesky closed 2 years ago

philipbelesky commented 2 years ago

In cases where the size of swatchCount exceeds that of gradientRange, the ValueSpan of a colour theme can then become 0. When computing linear ranges, the progress calculation will then fail with a Not a Number error. This only seemed to crop up when using Viridis with a particularly wide set of possible elevations.