code from my master's thesis work. has sat in a backup folder for a decade. might be useful? java viewer seems nonfunctional as Java3D seems dead.