added geometry, initial CSG detection on terrain