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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Surface PropertiesEdgeColor{ColorSpec} | none | flat | interpColor of the surface edge. This property determines how <strong>MATLAB</strong> colors theedges of the individual faces that make up the surface:• ColorSpec — A three-element RGB vector or one of <strong>MATLAB</strong>’s predefinednames, specifying a single color for edges. The default EdgeColor is black. SeeColorSpec for more information on specifying color.• none — Edges are not drawn.• flat — The CData value of the first vertex for a face determines the color ofeach edge.Direction ofincreasing y dataVertex controlling thecolor of adjacent edgesDirection ofincreasing x data• interp — Linear interpolation of the CData values at the face verticesdetermines the edge color.EdgeLighting{none} | flat | gouraud | phongAlgorithm used for lighting calculations. This property selects the algorithmused to calculate the effect of light objects on surface edges. Choices are:• none – Lights do not affect the edges of this object.• flat – The effect of light objects is uniform across each edge of the surface.• gouraud – The effect of light objects is calculated at the vertices and thenlinearly interpolated across the edge lines.• phong – The effect of light objects is determined by interpolating the vertexnormals across each edge line and calculating the reflectance at each pixel.Phong lighting generally produces better results than Gouraud lighting, buttakes longer to render.2-485

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

Saved successfully!

Ooh no, something went wrong!