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 PropertiesYou can also set the intensity of the ambient and specular components of thelight on the patch object. See the AmbientStrength and SpecularStrengthproperties.EdgeColor{ColorSpec} | none | flat | interpColor of the patch edge. This property determines how <strong>MATLAB</strong> colors theedges of the individual faces that make up the patch.• ColorSpec – A three-element RGB vector or one of <strong>MATLAB</strong>’s predefinednames, specifying a single color for edges. The default edge color is black. SeeColorSpec for more information on specifying color.• none – Edges are not drawn.• flat – The color of each vertex controls the color of the edge that follows it.This means flat edge coloring is dependent on the order you specify thevertices:Vertex controlling thecolor of the following edge• interp – Linear interpolation of the CData or FaceVertexCData values at thevertices determines 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 patch 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 patch.• 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.2-329

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

Saved successfully!

Ooh no, something went wrong!