A geometry viewer application that generates a standalone double-clickable file that views a given model.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
LICENSE
README.md
TOFIX
glad.c
glad.h
glext.h
linmath.h
moss.g
run.sh
test.c
viewer.c

README.md

brlcad-viewer

A geometry viewer application that generates a standalone double-clickable file that views a given model.

Compilation Instructions:

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

Development Plan Summary:

  • 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


Markdown Cheatsheet