Update geometry.py

wrong direction with the indexing.