dbclean in_model.g out_model.g
DBCLEAN(1)
NAME
dbclean - compact an mged database by removing dead space
On this page
SYNOPSIS
DESCRIPTION
dbclean compacts the input database in_model.g by converting it to ASCII via g2asc(1) and back to binary via asc2g(1), writing the result to out_model.g. This removes gaps left by the kill/killall commands in mged(1).
If either converter skips objects it cannot handle, the conversion still completes and out_model.g is written without those objects.
EXAMPLES
$ dbclean original.g compacted.g
Reads original.g, removes internal gaps, and writes a smaller
compacted.g.
SEE ALSO
mged(1), g2asc(1), asc2g(1)
DIAGNOSTICS
Numerous error conditions are possible, usually due to errors in the geometry database. Descriptive messages are printed on standard error (file descriptor 2).
AUTHOR
BRL-CAD Team
COPYRIGHT
This software is Copyright (c) 1991-2026 United States Government as represented by the U.S. Army Research Laboratory.
BUG REPORTS
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org