The googleable phrase you want is "constructive solid geometry." The wikipedia page is probably as good a place to start as any, but there are plenty of other resources that talk about it, mostly from the perspective of ray equations.