Update geometry.cpp