Win_ThreeD()

Controls and creates pre-scaled three dimensional windows for displaying 3d objects.

WIN_SCALED xmin=Real xmax=Real ymin=Real ymax=Real lxmin=Real lxmax=Real lymin=Real lymax=Real [colour=Colour] [eye=Realarray] [light=Realarray] Creates a scaled 3d window.

example:

	# Creating and displaying a scaled
	# 3d window
	>> win_threed 0.1 0.9 0.1 0.9 -100.0 10.0
	>> 0.0 10.0

Note: l means the logical (world) co-ordinate, and all other co-ordinates refer to device co-ordinates.

Win_ThreeD

Creates and displays a scaled 3d window. A scaled window is an area in which it is possible to specify any range of data or window co-ordinates to map onto an area of the display device (specified in device co-ordinates). Many 3d objects can be displayed in a single window, sharing the same eye and light setting unless these are specifically set for an object. The viewing screen is fixed at z=0 for all 3d objects.

Parameters:

xmin (Real)

Sets the minimum x device co-ordinate.

xmax (Real)

Sets the maximum x device co-ordinate.

ymin (Real)

Sets the minimum y device co-ordinate.

ymax (Real)

Sets the maximum y device co-ordinate.

lxmin (Real)

Sets the minimum x world co-ordinate.

lxmax (Real)

Sets the maximum x world co-ordinate.

lymin (Real)

Sets the minimum y world co-ordinate.

lymax (Real)

Sets the maximum y world co-ordinate.

Colour (Colour)

Sets the colour of the window. By default the colour of the window is black.

eye (Realarray)

(x,y,z) coordinate of the eye position - the z component of this should always be positive. The eye position given to the window is also assigned to objects displayed within the window (where appropriate) if no specific value is given to the objects when created. By default the eye position of the window is (0,0,1).

light (Realarray)

(x,y,z) direction of the flood-light. The light direction given to the window is also assigned to objects displayed within the window (where appropriate) if no specific value is given to the objects when created. By default the light direction of the windows is (0,0,1).

RESULT = (WindowScaled)

Returns all of the properties of the newly created window.