Added GetGeometry function to provide an accessor to the smart pointer