3D geometry library in C