ChartDirector 6.0 (Perl Edition)

SurfaceChart.setShadingMode


Usage

setShadingMode(shadingMode [, wireWidth ])

Description

Sets the shading mode for the surface.

ChartDirector supports the following methods for shading the surface.

ConstantValueDescription
SmoothShading0The brightness of the surface varies smoothly.
TriangularShading1The surface is divided into triangular patches. The brightness of the patches varies according to their orientation. Within a patch, the brightness is constant.
RectangularShading2The surface is divided into rectangular patches. The brightness of the patches varies according to their orientation. Within a patch, the brightness is constant.
TriangularFrame3The surface is divided into triangular patches. Only the edges of the patches are drawn.
RectangularFrame4The surface is divided into rectangular patches. Only the edges of the patches are drawn.

Arguments

ArgumentDefaultDescription
shadingMode(Mandatory)The shading mode, which must be one of the above constants.
wireWidth1The wire width for use with wireframe shading modes.

Return Value

None