As the final project in AMS 562(Scientific Programming in C++ in Stony Brook University), we implement geometric calculation on spherical triangle meshes.
A mesh (unstructured) can be represented by a set of coordinates (geometric data) and a connectivity table (topological data) that forms the connection relation between triangles and coordinates.
There're three algorithms that declared in src/manip.hpp
:
- Determine node to triangle adjacency
- Compute averaged outward unit normal vectors
- Analyze the approximation errors
More scientific background are demostrated in Final Project Description.
To compile
make
To do testing
make test
To clean directory
make clean
To debug with valgrind
, type
make debug
To get the result of test after compile
./main