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 PropertiesFaceColorColorSpec | none | {flat} | interpColor of the surface face. This property can be any of the following:• ColorSpec — A three-element RGB vector or one of <strong>MATLAB</strong>’s predefinednames, specifying a single color for faces. See ColorSpec for moreinformation on specifying color.• none — Do not draw faces. Note that edges are drawn independently of faces.• flat — The values of CData determine the color for each face of the surface.The color data at the first vertex determines the color of the entire face.• interp — Bilinear interpolation of the values at each vertex (the CData)determines the coloring of each face.• texturemap — Texture map the CData to the surface. <strong>MATLAB</strong> transformsthe color data so that it conforms to the surface. (See the texture mappingexample.)FaceLighting{none} | flat | gouraud | phongAlgorithm used for lighting calculations. This property selects the algorithmused to calculate the effect of light objects on the surface. Choices are:• none – Lights do not affect the faces of this object.• flat – The effect of light objects is uniform across the faces of the surface.Select this choice to view faceted objects.• gouraud – The effect of light objects is calculated at the vertices and thenlinearly interpolated across the faces. Select this choice to view curvedsurfaces.• phong – The effect of light objects is determined by interpolating the vertexnormals across each face and calculating the reflectance at each pixel. Selectthis choice to view curved surfaces. Phong lighting generally produces betterresults than Gouraud lighting, but takes longer to render.HandleVisibility {on} | callback | offControl access to object’s handle by command-line users and GUIs. Thisproperty determines when an object’s handle is visible in its parent’s list ofchildren. This property is useful for preventing command-line users fromaccidentally drawing into or deleting a figure that contains only user interfacedevices (such as a dialog box).Handles are always visible when HandleVisibility is on.2-487

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

Saved successfully!

Ooh no, something went wrong!