3-D Visualization |
Patch coloring is defined differently from surface object coloring in that patches do not automatically generate color data based on the value of the z-coordinate at each vertex. You must explicitly specify patch coloring, or MATLAB uses the default white face color and black edge color.
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.
Patch Color Properties
This table summarizes the patch properties that control color (exclusive of those used when light sources are present).
Property |
Purpose |
|
Specify single, per face, or per vertex colors in conjunction with x, y, and z data |
CDataMapping |
Specifies whether color data is scaled or used directly as indices into the figure colormap |
|
Specify single, per face, or per vertex colors in conjunction with faces and vertices data |
EdgeColor |
Specifies whether edges are invisible, a single color, a flat color determined by vertex colors, or interpolated colors determined by vertex colors |
FaceColor |
Specifies whether faces are invisible, a single color, a flat color determined by vertex colors, or interpolated colors determined by vertex colors |
MarkerEdgeColor |
Specifies the color of the marker, or the edge color for filled markers |
MarkerFaceColor |
Specifies the fill color for markers that are closed shapes |
Multifaceted Patches | Patch Edge Coloring |
© 1994-2005 The MathWorks, Inc.