Draws a straight line between two points inside a three dimensional window
ThreeD_Linet/DRAW | end1=Realarray end2=Realarray colour=Colour [dash=Integer] [eye=Realarray] | Draws a line, in a 3d window. |
ThreeD_Text/ALTER | [end1=Realarray] [end2=Realarray] [colour=Colour] [dash=Integer] [eye=Realarray] object=Gobject | Alters a previously drawn line. |
example:
#Draw a line >> l=ThreeD_Line:draw(end1,end2,$red) #Alter the colour of the line >> ThreeD_Line/alter colour=$green object=l
Draws a straight line between two points inside a 3d window. The z component of both the ends should be negative..
end1 (Realarray)
(x,y,z) coordinate of end-1.
end2 (Realarray)
(x,y,z) coordinate of end-2.
colour (Colour)
The colour index for the line.
dash (Integer)
If equal to 1 then the line is dashed otherwise it is continuous(default).
eye (Realarray)
(x,y,z) coordinate of the eye position, see Win_ThreeD for details.
RESULT = (Gobject)
Returns the properties of the newly created line.
Alters a line inside a 3d window.
end1 (Realarray)
(x,y,z) coordinate of end-1.
end2 (Realarray)
(x,y,z) coordinate of end-2.
colour (Colour)
The colour index for the line.
dash (Integer)
If equal to 1 then the line is dashed otherwise it is continuous.
eye (Realarray)
(x,y,z) coordinate of the eye position, see Win_ThreeD for details.
object (Gobject)
The ThreeDLine object to be altered.
RESULT = (Gobject)
Returns the properties of the altered line.