A treatise on solid geometry