The vdeck tool converts a model into an ASCII text representation separating regions (combinations with the region flag set) and primitives (also known as solids) into separate files. A list of objects to be converted are selected interactively from the table of contents. String matching operators (wild cards) like those used to specify file or directory names in sh(1) are provided for this purpose, as well as to search for names in the table of contents.
One or more COM-GEOM decks can be output. Each deck consists of three files: the solid, region, and region-id tables. These can be combined with cat(1).
A menu of the commands and their usage is available by typing ? to the program.
The vdeck tool is intended for v5 BRL-CAD geometry databases only. Files produced by older (v4 and earlier) versions of BRL-CAD may be incompatible with vdeck.
In the following example, <model> is the name of the BRL-CAD model and <groupname> is a group or region. Vdeck converts all of the primitives and regions within the specified group into text and writes them out to files:
> vdeck <model>.g command ( ? for menu ) >> i <groupname> command ( ? for menu ) >> d =================================================== O U T P U T F I L E S solid table = "solids" region table = "regions" region identification table = "region_ids" command ( ? for menu ) >> q quitting...
solidsdefault solid table output
regionsdefault region table output
region_idsdefault region ID table output
*.stunique solid table output
*.rtunique region table output
*.idunique region ID table output
/tmp/dis???temporary file used during processing
/tmp/reg???temporary file used during processing
cat(1), gedplot(1V), mged(1B).
Gary S. Moss, BRL/VLD-VMB Keith Applin, BRL/VLD-TAB
This software is Copyright (c) 1986-2013 by the United States Government as represented by U.S. Army Research Laboratory.
Reports of bugs or problems should be submitted via electronic mail to <email@example.com>.