DRAW(nged)

NAME

draw - Adds objects> to the display list so that they will appear on the MGED display. The e command is a synonym for draw.

SYNOPSIS

draw [-A attribute name/value pairs] [-s] [-A -o_attribute name/value pairs_] [-C #/#/#] [-L #] [-R] [-S] [-m1] {objects}

DESCRIPTION

Adds objects to the display list so that they will appear on the MGED display. The e command is a synonym for draw.

  • The -C option provides the user a way to specify a color that overrides all other color specifications including combination colors and region-id-based colors.

  • The -s option specifies that subtracted and intersected objects should be drawn with shape lines rather than dot-dash lines.

  • The -A option specifies that the arguments provided to this command are attribute name/value pairs, and only objects having the specified attributes and values are to be displayed. The default (without -o) is that only objects having all the specified attribute name/value pairs will be displayed.

  • The -m1 option will display BOTs shaded if the display manager is OpenGL and the zbuffer and lighting is enabled. To enable these settings, from the MGED GUI, choose "Modes/Display Manager/OpenGL", "Misc/Z-buffer" and "Misc/Lighting". If the zbuffer and lighting is already enabled, toggle them off then back on to ensure they are enabled.

  • The -L option allows the user to specify a face count. BoT primitives with more faces than the user set threshold will be represented in wireframe drawing by their bounding boxes rather than the full BoT wireframe.

  • The -R option tells draw to not change the view size when drawing new objects. Without this flag, draw will automatically size the view to make the new object(s) visible when the view was previously empty.

  • The -S option tells draw to be "simplified" by skipping subtraction objects when drawing, not drawing NMG interior surfaces, and potentially more. Skipping subtractions is useful in situations where an object has many large objects subtracted from it but those objects have relatively minimal impact on the shape. This results in the default wireframe bearing little resemablance to the evaluated shape.

EXAMPLES

The following examples show the use of the draw command to draw particular objects, to specify color, to draw with shape lines rather than dot-dash lines, and to limit the objects to be drawn to those having specific attribute names and value pairs.

Example 1. Draw specific objects in the MGED display.

mged> draw object1 object2

Object1 and object2 are drawn in the MGED display.

Example 2. Specify the color used to draw the object.

mged> draw -C 255/255/255 object2

Object2 is drawn in white.

Example 3. Limit the objects to be drawn to those having specific attribute names and value pairs.

mged> draw -A -o Comment {First comment} Comment {Second comment}

Objects having a Comment attribute with a value of either "First comment" or "Second comment" are drawn.

AUTHOR

BRL-CAD Team

This software is Copyright (c) 1989-2021 by the United States Government as represented by U.S. Army Research Laboratory.

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org