ABRG-Models / morphologica

A library of supporting code for numerical modelling (JSON config, HDF5 data, Modern OpenGL visualization)
https://abrg-models.github.io/morphologica/
Apache License 2.0
255 stars 29 forks source link

Adds colourmaps from CET, Fabio Crameri and William Lenthe #262

Closed sebjameswml closed 2 weeks ago

sebjameswml commented 2 weeks ago

This PR contains lookup table based maps from Crameri and CET, along with William Lenthe's code to generate a number of other maps.

sebjameswml commented 2 weeks ago

There's an annoying array bounds issue coming from

template<typename Real, size_t N, size_t K, size_t D>
void UniformSpline<Real, N, K, D>::interpolate(const Real t, const bool clamped, Real * const pt) const {

in which the compiler decides that the code is going to attempt to access an array with index -3.

sebjameswml commented 2 weeks ago

There's a typo in Cmakelists. coloursmaps_crameri.h