By default, the matrix comands expect a list of 16 matrix elements to define a matrix. The xlate option may be used along with three translation distances in the x, y, and z directions (in mm) as a shorthand notation for a matrix that is pure translation. Similarly, the rot option along with rotation angles (degrees) about the x, y, and z axes may be used as shorthand for a matrix that is pure rotation.
Ax + By + Cz = DThe user must be editing an ARB solid and be rotating a face of the ARB for this command to have any effect. When entering such a state, the user will be asked which of the face vertices should be held constant, and from this information the D coefficient of the equation is determined.
Ax + By + Cz = D
program options database_name objectsRrt also provides the current mged viewing parameters to the program on standard input. Many BRLCAD programs use the -M option to indicate that viewing parameters will be provided on standard input. The rt command can be simulated with rrt as:
rrt /usr/brlcad/bin/rt -M -s50provided that perspective is not currently being used. Any executable routine may be run using rrt, however it will always be run with the provided options followed by the current database name and the list of currently displayed objects.
#!/bin/sh rt -M \ -o test.rt.pix\ $*\ model.g\ 'object1' 'object2' \ 2>> test.rt.log\ <<EOF viewsize 2.780320739746094e+02; orientation 2.480973490458727e-01 4.765905732660483e-01 7.480973490458729e-01 3.894348305183902e-01; eye_pt 1.234152656421214e+02 7.220202900588745e+01 3.845765464924686e+01; start 0; clean; end; EOFWhen this script is executed, the image will be stored in test.rt.pix and all messages and errors generated by the rt program will be stored in test.rt.log. The above script will produce an image of object1 and object2 from the BRLCAD database named model.g. The viewsize, orientation, and eye_pt parameters reproduce the view displayed by mged when the saveview command was executed. The inclusion of ``$*'' allows the user to include any additional rt options when executing this script. Typically, a ``-s'' option might be used to set the image size (the default is 512 pixels square). See the man page on rt for details on available options.
| MGED Drawing Command | Vdraw integer | MGED Action |
|---|---|---|
| RT_VLIST_LINE_MOVE | 0 | begin a new line at this point |
| RT_VLIST_LINE_DRAW | 1 | draw line from previous point to this point |
| RT_VLIST_POLY_START | 2 | start polygon (argument is surface normal) |
| RT_VLIST_POLY_MOVE | 3 | move to first polygon vertex |
| RT_VLIST_POLY_DRAW | 4 | subsequent polygon vertices |
| RT_VLIST_POLY_END | 5 | last vertex of polygon (should be same as first) |
| RT_VLIST_POLY_VERTNORM | 6 | vertex normal (for shading interpolation) |
If the display is in rotateaboutcenter mode then the rotation will occur about the center of the viewing volume. In rotateabouteeye mode The view on the display will be rotated about the eye. The vars command (or a menu button) allows the user to toggle between the two modes.