Turns 3D cross-hatching On or Off.
SETHATCH(win, hatch)
win |
- |
Optional. A Window, defaults to the current Window. |
||||
hatch |
- |
An integer, the 3D cross-hatch mode:
|
Nothing.
(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.
(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.
sethatch(0) is useful for high density 3D plots.