Separate 3D visualization and algorithm