Coloring mesh edges in meshlab : <p>I have been working on an algorithm that takes a mesh, does some fancy things with it, and produces some output.</p>

<p>To visualize the result I decided to produce a copy of the mesh, colour it in a smart way that is somehow related to the produced output, and visualize it with Meshlab. However, I need to color <em>some</em> of the edges of the mesh differently from others.</p>

<p>After googling for several hours, I haven't been able to find a way to do this, even though the file formats (.obj, .ply ...) seem to support this behaviour, as suggested by 
<a href="http://paulbourke.net/dataformats/ply/" rel="noreferrer">this tutorial</a> (which I followed to produce the output mesh).</p>

<p>I have produced a work around, which is, to each vertex I assign the colour of one of the edges it is adjacent to, and then I just colour the edges based on the vertex colour, but unfortunately, this means that (for example) edges that are of two different colours will be rendered with a gradient from one colour to the other, which is not the intended behaviour.</p>

<p>Am I doing something wrong here? (Like ignoring some patently obvious option). Or alternatively, is there an alternate way of rendering the mesh that would allow one to colour edges (that wouldn't imply coding one's own renderer or spending 3 days scouring through blender's manual looking for the right key combination)?</p>

<p>Any help would be very welcome. Thanks in advance.</p>
