1
BRL-CAD
BRL-CAD User Commands
asc2g
This command converts a BRL-CAD mged geometry database from ASCII to binary form.
asc2g
input.asc output.g
DESCRIPTION
The command is a utility for converting mged(1) geometry databases in ASCII format to the new binary form.
The command will take either ASCII formats but will always make the new binary format.
Both asc2g and g2asc are basically filters that convert binary and ASCII.
The original use of this command was so files could be moved from one machine to another in a portable format.
Now this is not needed for the current binary geometry database files that are created by mged, the converting still
remains a required for older geometry database files.
Options
This command doesnt take any options. Although you have to write the input & output files.
EXAMPLES
g2asc file.g file.asc
Used on a local machine and will convert the mged databases to ASCII using g2asc
scp file.asc remote.file.asc
Move converted databases to remote machine
ssh remote"asc2g file.asc file.g"
On the remote machine, convert files back to binary for the machine using asc2g
AUTHOR
BRLCAD-TEAM
BUG REPORTS
Reports of bugs or problems should be submitted via electronic
mail to <devs@brlcad.org>, or via the "cadbug.sh" script.