functioning geometry preprocessing