LatticeSlice()

Plots a "grey scale" slice through a unit cell of density, inside a three dimensional window

LatticeSlice/DRAW lattice=Realarray density=Realarray dlow=Real dhigh=Real normal=Realarray apoint=Realarray edge=Integer table=Colourtable [eye=Realarray] Plots a slice through a unit-cell, in a 3d window.
LatticeSlice/ALTER [lattice=Realarray] [dlow=Real] [dhigh=Real] [normal=Realarray] [apoint=Realarray] [edge=Integer] [table=Colourtable] [eye=Realarray] object=Gobject Alters a previously plotted slice.

example:

	#Plot a slice through a unit-cell of density
	>> ls=LatticeSlice:draw(lattice,density,0.0,30.0,normal,apoint,4,table)
	#Alter the density of the low colour index
	>> LatticeSlice/alter dlow=10.0 object=ls

LatticeSlice/Draw

Plots a "grey scale" slice through a unit cell of density, inside a 3d window. All (x,y,z) values are taken to be given in world coordinates. The z component of all lattice vertices should be negative.

Parameters:

lattice (Realarray)

(x,y,z) coordinates of the origin and the a, b, & c lattice vertices. The array should be allocated by DIMENSIONS(4,3).

density (Realarray)

The density at regular points within the unit cell. The array is of size (N1+1)x(N2+1)x(N3+1), where N1, N2, N3 are the dimensions of the unit cell grid. It should be allocated by DIMENSIONS(N3+1,N2+1,N1+1). The density is wrapped around so that DENSITY(0,J,K)=DENSITY(N1,J,K) etc.

dlow (Real)

The density for the lowest colour index.

dhigh (Real)

The density for the highest colour index.

normal (Realarray)

(x,y,z) direction of the normal to the slice to be "grey scaled".

apoint (Realarray)

(x,y,z) coordinate of a point within the slice to be "grey scaled".

edge (Integer)

If >=0 then the colour index for the boundary of the "grey scaled" slice.

table (Colourtable)

The colour table to be used, see ColourTable for details.

eye (Realarray)

(x,y,z) coordinate of the eye position, see Win_ThreeD for details.

RESULT = (Gobject)

Returns the properties of the newly created slice.

LatticeSlice/Alter

Alters a slice plotted inside a 3d window.

Parameters:

lattice (Realarray)

(x,y,z) coordinates of the origin and the a, b, & c lattice vertices. The array should be allocated by DIMENSIONS(4,3).

dlow (Real)

The density for the lowest colour index.

dhigh (Real)

The density for the highest colour index.

normal (Realarray)

(x,y,z) direction of the normal to the slice to be "grey scaled".

apoint (Realarray)

(x,y,z) coordinate of a point within the slice to be "grey scaled".

edge (Integer)

If >=0 then the colour index for the boundary of the "grey scaled" slice.

table (Colourtable)

The colour table to be used, see ColourTable for details.

eye (Realarray)

(x,y,z) coordinate of the eye position, see Win_ThreeD for details.

object (Gobject)

The LatticeSlice object to be altered.

RESULT = (Gobject)

Returns the properties of the altered slice.