This code is used to put together a computer model of a simple solid. The program reads in a solid based on a fixed file format, processes the information, normalises it, and then outputs it again. The code is only likely to be useful for simple solid modelling type projects, or possibly some simple graphics projects. The exception is the tvector.cpp file, which has a simple implementation of a vector template class, in case the STL vector is not available.
This is the main assignment file (the one to compile). It links together all these other files. Not much of worth here, just a main() function.
A lot of typedefs, constants and class definitions.
Essentially nothing here.
All the functions (member functions mostly) to do with edges.
All the functions (member functions mostly) to do with faces.
Routines to process input from a stream (cutting whitespace and so on).
Routines that load in information about the solid.
All the functions (member functions mostly) to do with line segments.
Min, Max, SecondMin and SecondMax functions.
All the functions (member functions mostly) to do with nodes.
Functions to output solid information.
Not much here.
A very simple solid.
A more complicated solid.
All the functions (member functions mostly) to do with tiles.
A simple implementation of a vector template class.