Sample code from a graphics engine used in a finite element analysis application