The min-max selection, and the camera culling now works fine.

Note: never trust your own code.