DESCRIPTION

Allows drawing of lines and polygons (optionally with per vertex normals) in the MGED graphics display. It is used to build a named list of drawing commands for MGED, send the list to the MGED display, modify the list, or delete all or part of the list. All vertices in the vdraw command are in millimeters. The MGED drawing commands are represented by integers in the vdraw command. The MGED drawing commands and the integers that vdraw uses for them are:


The vdraw commands are as follows:

  • open -- with no arguments, this returns “1” if there is a open list; “0” otherwise. If an argument is supplied, a command list is opened with the provided name.

  • write-- with arguments of i c x y z, the MGED drawing command #c is placed in the ith position of the command list with the vertex as ( x y z).

    -- with arguments of next c x y z, the command is placed at the end of the list.

  • insert -- with arguments of i c x y z, the MGED drawing command #c is inserted just before the ith position of the command list.

  • delete -- with an integer argument of i, the ith command is deleted.

    -- with an argument of "last," the last command on the list is deleted.

    -- with an argument of "all," all the commands on the list are deleted.

  • params -- with an argument of color rrggbb, the color of all objects on this list is set. The rrggbb is a hex number representing the color, "ffffff" is white, "ff0000" is red, "00ff00" is green, etc.

    -- with a single string argument, the name of the current list is changed.

  • read -- with an integer argument of i, the ith command is returned.

    -- with an argument of "color," the current color is returned.

    -- with an argument of "length," the number of commands in the current list is returned.

    -- with an argument of "name," the name of the current command list is returned.

  • send -- send the current command list to the MGED display manager.

  • vlist -- with an argument of "list," return a list of the names of all existing command lists.

    -- with an argument of delete list_name, delete the specified command list.

All textual arguments may be abbreviated by their first letter.