Assign a list of colours to a number of triangles

Hello community,

I was wondering if the following is possible using Blender:

We have given an arbitrary triangulation (e.g. example-triangulation.stl (204 KB)) and further a list of RGB colours (e.g. example-colours.txt (204 KB) some random colours). The number of colours is equal to the number of triangles. Is it possible (within Blender) to assign the colours of the list to the triangles? I mean the first triangle should get the first colour, the second triangle the second colour and so on.

Thank you for suggestions,