Picking colours according to slope heights

I’ve made a few small changes. Whatever it is you want to do, I’m sure you can do it without a plugin if you understand this code.

  • Used QRMesh (Quad Remesh) instead of Mesh UV. Produces mesh faces aligned with the original surface instead of aligned diagonally (with the untrimmed surface UV curves).

  • Replaced the fixed value ‘16’ with a ‘NumColors’ slider (blue group) to adjust color “resolution”.

  • Added a ‘All or One’ Value List (yellow group) to switch between showing all colors or just the one selected with the ‘Index’ slider in the purple group.


Trial 2_2023Sep17a.gh (72.0 KB)

NOTE: I am converting mesh faces to EdgeSrf fragments because I don’t know how to color mesh faces - maybe someone else does?

4 Likes