g_diff — a BRL-CAD differential geometry comparator
compares the two BRL-CAD models specified on the command line. The results of this comparison
are written to standard out in a human readable form describing the changes from model1 to model2.
option is exercised, the output will be a script, readable by mged(1), that will perform the
necessary changes to model1 to make it a copy of model2. The produced script makes extensive use
commands in mged(1). A few solid types are not supported by these commands, and changes involving these
solids are merely noted (the script will not actually be capable of performing all the changes in this case).
option selections evolutionary mode, which attempts to guess if a change in a region is due to an evolutionary change or a reworking.
The output is similar to -m, but it is NOT mged readable.
option requests that all floating point numerical comparisons be done in single precision rather
than the default double precision. This may be useful when comparing different format databases.
option requests that the default attributes of each region in both files be checked for
consistency. Any inconsistencies are written to stderr.
The program returns 0 if the files being compared have no differences and non-zero otherwise.
g_diff -m uncle.g aunt.g > mged.script
will create a file named "mged.script" that may be sourced in mged(1) to change uncle.g into aunt.g .
This software is Copyright (c) 1999-2016 by the United States Government as represented by U.S. Army Research Laboratory.