Discretise mesh but keep valid groups/topology

Thanks peter.

I’m looking at the K-means implementation in the Accord library but it’s not clear how I would sort the faces alongside the (averaged) face colour?

May I ask which implementation of Kmeans you’re using and if you’re happy to share it?

Thanks,
Charles