3-D Visualization | ![]() ![]() |
Face and Edge Coloring
You can specify patch face coloring by defining:
Specify the face color using either the CData
property, if you are using x-, y-, and z-coordinates or the FaceVertexCData
property, if you are specifying vertices and faces.
Each patch face has a bounding edge, which you can color as:
Note that patch edge colors can be flat or interpolated only when you specify a color for each vertex. For flat edge coloring, MATLAB uses the color of the vertex preceding the edge to determine the color of the edge. The order in which you specify the vertices establishes which vertex colors a particular edge.
![]() | Specifying Patch Coloring | Example - Specifying Flat Edge and Face Coloring | ![]() |