C++ library for geometry