SMS: Analytical solid geometry