
! script name: 3drender.d/shadeentire
! 3dtopic: shades a group of surfaces

!A
!A NAME:
!A
!A 	Fast Shading of Entire Database
!A
!A DESCRIPTION:
!A
!A 	This script shades a group of surfaces.
!A
!B INSTRUCTIONS:
!B
!B 	IMAGE FILE NAME (MAX=10): Enter the name of the image to be used for
!B 		for storage purposes.  Maximum number of characters is 10.
!B
!C NOTES:
!C
!C 	Colors allows the surfaces to be shaded with a hue similar to the
!C 	original color described on the surface.  Do not use pen 0 - this
!C 	would produce a black image.
!C 	There are 256 colors available in the system.  Many of the colors
!C 	are allocated to motif, the rest are allocated for shading.
!C 	Depending on the number of colors in the shaded image, pens will be
!C 	allocated accordingly.
!C 	The image obtained may be improved by changing the shading tolerance
!C 	or the plot density.  If a tolerance is too small, shading will take
!C 	a very long time.  Changing the plot density may improve the image
!C 	especially on trimmed surfaces.
!C

Stat=ChangeLabelStr("ScriptNameStatus","Function: shade entire ")

DIM Destination$[256]
DIM Answer$[256]
DIM Jobname$[256]
DIM Jobname1$[256]
DIM Space$[20]
DIM Dir$[256]

DeActivateUndo
Space$=" "
Jobname$=""

Start:!

Vnum=1


Stat=ShadeDatabase(Vnum,Jobname1$,WsTrue)


Leave:!
Stat=LowerShade("data")
Stat=SetPickMask(WsPickGeometry)
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END
