Solid Modelling Code

 

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.

 

assign.cpp

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.

assign.h

A lot of typedefs, constants and class definitions.

directedlinesegment.cpp

Essentially nothing here.

edge.cpp

All the functions (member functions mostly) to do with edges.

face.cpp

All the functions (member functions mostly) to do with faces.

helpful.cpp

Routines to process input from a stream (cutting whitespace and so on).

input.cpp

Routines that load in information about the solid.

linesegment.cpp

All the functions (member functions mostly) to do with line segments.

minmax.cpp

Min, Max, SecondMin and SecondMax functions.

node.cpp

All the functions (member functions mostly) to do with nodes.

output.cpp

Functions to output solid information.

planarstructure.cpp

Not much here.

shapes.dat

A very simple solid.

shapes1.dat

A more complicated solid.

tile.cpp

All the functions (member functions mostly) to do with tiles.

tvector.cpp

A simple implementation of a vector template class.

 

tony.meyer@gmail.com