nmwsharp / polyscope

A C++ & Python viewer for 3D data like meshes and point clouds
https://polyscope.run
MIT License
1.83k stars 203 forks source link

Seting default color for NaN in `addScalarQuantity` #297

Open berendbaas opened 2 months ago

berendbaas commented 2 months ago

While debugging scalar quantities, I find myself often overlooking NaN values, because as it stands, they (seem to) get mapped to zero. It'd be nice if we could specify the color that NaN values should map to, so they're easier to distinguish. perhaps as an extra optional<glm::vec3> argument (if empty, default to current behaviour) argument would help.