SMS: Analytical solid geometry.