Package to solve geometry problems with particle data from dark matter simulations