Mayavi/mlab: Plot triangles with colour data per triangle, not per vertex
问题 If one uses the function triangular_mesh one can pass a set of triangles, given as lists of indices, the vertex positions and a set of data to to assign colours to the vertices. The triangles are then coloured by interpolation between the vertex colours. How can I assign colours triangle-wise, without any interpolation? 回答1: This was asked on the scipy mailing list too. You can't do it with triangular_mesh, but you can if you make a generic surface using a triangular mesh as a source. s =