Computational vortex dynamics in two and three dimensions