3-D Visualization    

Coloring Edges with Shared Vertices

Each patch face is bound by edges, which are line segments that connect the vertices. When patches have multiple faces that share vertices, some of the edges may overlap. In such cases, the edges of the most recently drawn face overlay previously drawn edges.

For example, this illustration shows a patch with four faces and flat colored edges (FaceColor set to none, EdgeColor set to flat).

The arrows indicate the order in which each edge is drawn in the first, second, third, and fourth face. The color at each vertex determines the color of the edge that follows it. Notice how the second edge in the first face would be green except that the second face drew its fourth edge from the magenta vertex. You can see similar effects in all shared edges.

For EdgeColor set to interp, MATLAB interpolates colors between adjacent vertices. In this case, the order in which you specify the vertices does not affect the edge color.


  Example - Specifying Flat Edge and Face Coloring Interpreting Indexed and Truecolor Data