A geometry viewer application that generates a standalone double-clickable file that views a given model.
Adjust the command according to the location of your brlcad installation. This command is for default and release 7.24.4.
gcc -o viewer viewer.c -L/usr/brlcad/rel-7.24.4/lib -lrt -lbu -I/usr/brlcad/rel-7.24.4/include -I/usr/brlcad/rel-7.24.4/include/brlcad
cat viewer moss.g > exec
./exec
Read a ".g" file and identify its header bytes[DONE]- Pass on the opened file to librt
- Call libdm to draw the geometry
More here: BRLCAD Viewer