12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Patch Propertiescases. For example, consider the following patch. It is composed of eighttriangular faces defined by nine vertices.Faces property Vertices propertyV 7 V28 V 9F V 1 V 4 1.81 V 5 V 1 X 1 Y 1 Z 11.6FF V 1 V5 5 V 25 F 2V 2 X 2 Y 2 Z 271.4F V 2 V VF 5 61.26 F 3V 83 X 3 Y 3 Z 3FV 4 V 2 V 6 V 4V15V 36V 4 X 4 Y 4 Z 4F V 4 V 7 V0.858 V 5X 5 Y 5 Z 50.6 F 1 F 3F 6 V 4 V 8 V75V 6 X 6 Y 6 Z 60.4F 2 F 4F 7V 5 V 8 V 90.2V 7 X 7 Y 7 Z 7F8 5V V 9 V05 60 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2V XV 1 V 2 V 8 8 Y 8 Z 83The corresponding Faces and Vertices properties are shown to the right of thepatch. Note how some faces share vertices with other faces. For example, thefifth vertex (V5) is used six times, once each by faces one, two, and three andsix, seven, and eight. Without sharing vertices, this same patch requires 24vertex definitions.FaceVertexCData matrixFace and vertex colors. The FaceVertexCData property specifies the color ofpatches defined by the Faces and Vertices properties, and the values are usedwhen FaceColor, EdgeColor, MarkerFaceColor, or MarkerEdgeColor are setappropriately. The interpretation of the values specified for FaceVertexCDatadepends on the dimensions of the data.For indexed colors, FaceVertexCData can be:X 9 Y 9 Z 9• A single value, which applies a single color to the entire patch• An n-by-1 matrix, where n is the number of rows in the Faces property, whichspecifies one color per faceV 92-332

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!