Trigonometry of partially truncated triangles and tetrahedra | Synapse