VDECK(1)
π vdeck(1) β the BRL-CAD manual page, but make it make sense
okay bestie, so you want a COMGEOM card deck out of your BRL-CAD database? say less. this is vdeck, from the BRL-CAD fam, and it's literally the bridge between your pretty .g file and the crusty column-oriented ASCII that GIFT5 eats. let's go π«Ά
β¨ NAME β¨
vdeck β generate COMGEOM card decks from a BRL-CAD geometry database π
π SYNOPSIS π
vdeck [-d] file.g [object ...]
π¦ DESCRIPTION π¦
so. the vdeck tool reads a BRL-CAD geometry database (.g) and produces a COMGEOM card deck β which is the strictly column-oriented ASCII representation historically used as input to GIFT5 (also gift(1V)). yes, column-oriented. like, every character in its little assigned seat. iconic but strict π
a deck is made of three tables:
- a Solid table
- a Region table
- a region Ident table
and when you concatenate them in that exact order with cat(1), they form a complete COMGEOM deck. slay π₯
vdeck runs an interactive command interpreter. objects get selected from the database table of contents into a working list, and then a deck is written for that list. object names may be given with the shell-style string-matching operators , ?, [], - and \\ (see *sh(1)). any object names supplied on the command line after file.g are inserted into the working list before the interpreter starts. so you can walk in already loaded, no cap π
the interactive commands (the first letter is sufficient, and all arguments are optional) are:
deck [prefix]β produce a COMGEOM card deck for the current list.eraseβ erase the current list of objects.insert [object ...]β add matching objects to the current list.list [object ...]β display the current list of selected objects.number [solid] [region]β set the starting numbers for solids and regions.quitβ terminate the run.remove [object ...]β remove matching objects from the current list.sortβ sort the table of contents alphabetically.toc [object ...]β show the database table of contents.
typing ? at the prompt prints a menu of these commands. she's helpful like that π§
only primitives with a COMGEOM equivalent are converted, and here's the full guest list:
torarb8(and its degeneratearbforms)elltgc(and itsrcc/trc/tec/recforms)arshalfarbn
primitives without a COMGEOM equivalent get written as a placeholder record and skipped with a warning. not ghosted, exactly β more like politely seated at the kids' table π
π OPTIONS π
-dβ enable debug output. region and solid processing is reported on standard output as the deck is built π
πΈ EXAMPLES πΈ
Example 1. Build and concatenate a COMGEOM deck for a group
vdeck havoc.g
command ( ? for menu ) >> insert havoc
command ( ? for menu ) >> deck havoc
command ( ? for menu ) >> quit
cat havoc.st havoc.rt havoc.id > havoc.cg
so what just happened: it selects the havoc group from the database, writes the three deck files havoc.st, havoc.rt, and havoc.id, then concatenates them in Solid/Region/Ident order into a single COMGEOM deck havoc.cg suitable for input to GIFT5. main character behavior fr fr β
heads up bestie: without a prefix argument todeck, the files are namedsolids,regions, andregion_idsinstead. ikyk π
π FILES π
solids,regions,region_idsβ default Solid, Region, and region Ident tables (whendeckis given no prefix).prefix.st,prefix.rt,prefix.idβ Solid, Region, and region Ident tables (whendeckis given a prefix).
π SEE ALSO π
brlcad(1), mged(1), cat(1), sh(1) β go read those too, they're part of the lore π
π AUTHOR π
BRL-CAD Team
π COPYRIGHT π
This software is Copyright (c) 1989-2026 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. don't suffer in silence, bestie, they literally want to know π«Ά
okay that's the whole page, and it's from the BRL-CAD crew β vdeck(1), the manual page itself π
β¨ go build some decks, you've got this π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms