DADiSP Worksheet Functions > Function Categories > Display and Manipulation > SETHATCH

 

SETHATCH

Purpose:

Turns 3D cross-hatching On or Off.

Syntax:

SETHATCH(win, hatch)

win

-

Optional. A Window, defaults to the current Window.

hatch

-

An integer, the 3D cross-hatch mode:

0:

Disabled

1:

Enabled (default)

Returns:

Nothing.

Example:

(x, y) = fxyvals(-2, 2, 0.1, -2, 2, 0.1);

cos(x*y);setplottype(4);hot();sethatch(0);

 

creates a shaded 3D plot of cos(x*y) without cross-hatching.

Example:

(x, y) = fxyvals(-2, 2, 0.1, -2, 2, 0.1);

W1: cos(x*y);setplottype(4);hot();sethatch(0);

W2: deriv(w1)

moveto(w1);shadewith(w2);pon;

 

creates a shaded 3D plot of cos(x*y) without cross-hatching using the derivative of the surface as the lighting model.

Remarks:

sethatch(0) is useful for high density 3D plots.

See Also:

PLOT3D

SETPLOTTYPE

SETPLOTMETHOD