Rod()

Plots a diffusively shaded coloured rod inside a three dimensional window

Rod/DRAW end1=Realarray end2=Realarray radius=Real nsides=Integer table=Colourtable [lend=Integer] [eye=Realarray] [light=Realarray] Plots a coloured rod, in a 3d window.
Rod/ALTER [end1=Realarray] [end2=Realarray] [radius=Real] [nsides=Integer] [table=Colourtable] [lend=Integer] [eye=Realarray] [light=Realarray] object=Gobject Alters a previously plotted rod.

example:

	# Plot a rod
	>> r=Rod:draw(centre,end1,end2,2.0,8,table)
	# Alter the radius of the rod
	>> Rod/alter radius=3.0 object=r

Rod/Draw

Plots a diffusively shaded coloured rod inside a 3d window. All (x,y,z) values are taken to be given in world coordinates. The z components of the rod ends should be negative (< -radius).

Parameters:

end1 (Realarray)

(x,y,z) coordinate of rod end 1.

end2 (Realarray)

(x,y,z) coordinate of rod end 2.

radius (Real)

Radius of the cylindrical rod.

nsides (Integer)

The order of the polygon to be used for the cross-section of the rod.

table (Colourtable)

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

lend (Integer)

If 1(default) the end of the rod is plotted.

eye (Realarray)

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

light (Realarray)

(x,y,z) direction of the flood-light, see Win_ThreeD for details.

RESULT = (Gobject)

Returns the properties of the newly created rod.

Rod/Alter

Alters a rod plotted inside a 3d window.

Parameters:

end1 (Realarray)

(x,y,z) coordinate of rod end 1.

end2 (Realarray)

(x,y,z) coordinate of rod end 2.

radius (Real)

Radius of the cylindrical rod.

nsides (Integer)

The order of the polygon to be used for the cross-section of the rod.

table (Colourtable)

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

lend (Integer)

If 1(default) the end of the rod is plotted.

eye (Realarray)

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

light (Realarray)

(x,y,z) direction of the flood-light, see Win_ThreeD for details.

object (Gobject)

The rod object to be altered.

RESULT = (Gobject)

Returns the properties of the altered rod.