Rename setGeometry to setGeometryFunction