Plots a diffusively shaded coloured right-angular cone inside a three dimensional window
Cone/DRAW | base=Realarray apex=Realarray radius=Real nsides=Integer table=Colourtable [eye=Realarray] [light=Realarray] | Plots a coloured cone, in a 3d window. |
Cone/ALTER | [base=Realarray] [apex=Realarray] [radius=Real] [nsides=Integer] [table=Colourtable] [eye=Realarray] [light=Realarray] object=Gobject | Alters a previously plotted cone. |
example:
#Plot a cone >> c=Cone:draw(base,apex,2.0,8,table) #Alter the radius of the cone >> Cone/alter radius=1.5 object=c
Plots a diffusively shaded coloured right-angular cone inside a 3d window. All (x,y,z) values are taken to be given in world coordinates. The z components of the base and apex should be negative (< -radius).
base (Realarray)
(x,y,z) coordinate of the centre of the base of the cone.
apex (Realarray)
(x,y,z) coordinate of the apex.
radius (Real)
Radius of the base of the cone.
nsides (Integer)
The order of the polygon to be used for the cross-section of the cone.
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.
light (Realarray)
(x,y,z) direction of the flood-light, see Win_ThreeD for details.
RESULT = (Gobject)
Returns the properties of the newly created cone.
Alters a cone plotted inside a 3d window.
base (Realarray)
(x,y,z) coordinate of the centre of the base of the cone.
apex (Realarray)
(x,y,z) coordinate of the apex.
radius (Real)
Radius of the base of the cone.
nsides (Integer)
The order of the polygon to be used for the cross-section of the cone.
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.
light (Realarray)
(x,y,z) direction of the flood-light, see Win_ThreeD for details.
object (Gobject)
The cone object to be altered.
RESULT = (Gobject)
Returns the properties of the altered cone.